Skip to content
Alexander Fast edited this page May 26, 2014 · 2 revisions

A Mesh Mode defines how the underlying mesh that renders the tile map is created and used. The modes are:

Single Quad

  • One quad (four vertices, two triangles) is created for the entire tile map.
  • A texture (sized TileResolution * TileSize) is created.
  • Doesn't require all tiles/sprites to be from the same texture.
  • Tiles are set by copying their pixels to the internal texture.

Quad Grid

  • One quad is created for each tile in the tile map.
  • Has no internal texture, rather reuses the one from the sprites.
    • As such, it requires all tiles/sprites to be on the same texture.
  • Tiles are set by setting UV coordinates for the corresponding vertices.
Clone this wiki locally