Load multiple meshes from obj file

This commit is contained in:
2017-02-27 19:15:00 -05:00
parent 7259f5daf2
commit 1c5491a2c5
5 changed files with 567 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ namespace hexworld
_cubeMesh = Mesh.FromJson<Vertex>(@"res\data_vert_cubes.json");
_panelMesh = Mesh.FromJson<Vertex>(@"res\data_vert_panels.json");
_sidesMesh = Mesh.FromJson<Vertex>(@"res\data_vert_sides.json");
_objMesh = Mesh.FromObj(@"res\table.obj");
_objMesh = Mesh.FromObj(@"res\door.obj")[0];
_grassTiles = new SubArray<Tile>(
JsonConvert.DeserializeObject<Tile[]>(File.ReadAllText(@"res\data_tile_grass.json")));