public static OcclusionTileset Load(string path) { OcclusionTileset tilemap = new OcclusionTileset(); tilemap.LoadSelf(path); return(tilemap); }
public OcclusionMesh(OcclusionTileset setTileset) { tileset = setTileset; mesh = new Mesh(); vertices = new List <Vector3>(); uv = new List <Vector2>(); triangles = new List <int>(); colors = new List <Color>(); }
public void Initialize() { if (tilemap2D == null) { return; } SetupMap(); if (tileset == null) { tileset = OcclusionTileset.Load("Textures/OclussionMap"); } GenerateMesh(); ExportMesh(); }