mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Use polygon offset to fix z-fighting for overlay tiles
This commit is contained in:
parent
dfd7628950
commit
5b14c03301
4 changed files with 49 additions and 23 deletions
|
@ -50,6 +50,11 @@ struct FrameSpec
|
|||
video::ITexture *texture = nullptr;
|
||||
};
|
||||
|
||||
/**
|
||||
* We have two tile layers:
|
||||
* layer 0 = base
|
||||
* layer 1 = overlay
|
||||
*/
|
||||
#define MAX_TILE_LAYERS 2
|
||||
|
||||
//! Defines a layer of a tile.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue