Update Atlas system
This commit is contained in:
parent
18203c539f
commit
e7cf3bdf5a
3 changed files with 45 additions and 12 deletions
|
|
@ -1,29 +0,0 @@
|
|||
using LandblockExtraction.DatEngine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LandblockExtraction.AtlasMaker;
|
||||
public class AtlasMaker {
|
||||
private readonly int TEXTURESIZE = 64;
|
||||
private PortalEngine portalEngine;
|
||||
|
||||
public Dictionary<uint, Vector2> textureCoord;
|
||||
|
||||
public AtlasMaker(PortalEngine portalEngine) {
|
||||
this.portalEngine = portalEngine;
|
||||
textureCoord = new Dictionary<uint, Vector2>();
|
||||
}
|
||||
|
||||
public void InitTerrainWithTexture() {
|
||||
Dictionary<uint, uint> TerrainAndSurfaceIndex = new Dictionary<uint, uint>();
|
||||
foreach(var terrain in portalEngine.cTerrainDesc.terrains) {
|
||||
TerrainAndSurfaceIndex.Add(terrain.terrainIndex, terrain.surfaceInfo);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue