1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-20 03:35:18 +02:00

Use polygon offset to fix z-fighting for overlay tiles

This commit is contained in:
sfan5
2025-01-04 17:51:04 +01:00
parent dfd7628950
commit 5b14c03301
4 changed files with 49 additions and 23 deletions

View File

@@ -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.