Tweak layer depth distribution (#3738)

This commit is contained in:
Adrian Cojocaru
2025-08-28 17:42:34 +03:00
committed by GitHub
parent 426e519665
commit 2a2bce8d4d
4 changed files with 58 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ public:
#if MLN_RENDER_BACKEND_OPENGL
static constexpr float depthEpsilon = 1.0f / (1 << 16);
#else
static constexpr float depthEpsilon = 1.0f / (1 << 12);
static constexpr float depthEpsilon = 1.0f / (1 << 11);
#endif
static constexpr int maxStencilValue = 255;