Prep ent
This commit is contained in:
@@ -177,27 +177,6 @@ class Tile:
|
||||
def buffer(self, vertexBuffer):
|
||||
if self.shape == TILE_SHAPE_NULL:
|
||||
return
|
||||
# Old code:
|
||||
# if self.x != 0 or self.y != 0 or self.z != 0:
|
||||
# return # Only buffer the tile at (0,0,0)
|
||||
# Center tile.
|
||||
# x = self.posX - TILE_WIDTH / 2.0
|
||||
# y = self.posY - TILE_HEIGHT / 2.0
|
||||
# z = self.posZ - TILE_DEPTH / 2.0
|
||||
# w = TILE_WIDTH
|
||||
# h = TILE_HEIGHT
|
||||
# d = TILE_DEPTH
|
||||
|
||||
# # Quad on the XY plane at z
|
||||
# vertexBuffer.vertices.extend([
|
||||
# x, y, z, # bottom left
|
||||
# x + w, y, z, # bottom right
|
||||
# x + w, y + h, z, # top right
|
||||
|
||||
# x, y, z, # bottom left
|
||||
# x + w, y + h, z, # top right
|
||||
# x, y + h, z # top left
|
||||
# ])
|
||||
|
||||
# New code:
|
||||
baseData = self.getBaseTileModel()
|
||||
|
||||
Reference in New Issue
Block a user