basic support for rendering large tiles

This commit is contained in:
Gered 2013-12-31 14:13:49 -05:00
parent 0c61bedc2d
commit 5b5d747616

View file

@ -50,6 +50,12 @@ public class ChunkVertexGenerator {
if (tile.isEmptySpace()) if (tile.isEmptySpace())
continue; continue;
// only render large tile root/parent tiles or any other non-large-tile tiles
// (the idea being that the large tile's mesh will extend into the other non-root/parent tile
// spaces, so we shouldn't render anything for those other spaces)
if (tile.isLargeTile() && !tile.isLargeTileRoot())
continue;
TileMesh mesh = chunk.tileMap.tileMeshes.get(tile); TileMesh mesh = chunk.tileMap.tileMeshes.get(tile);
// "world/tilemap space" position that this tile is at // "world/tilemap space" position that this tile is at