From 0069af02e771a94695024eb6b90a1a15ae7e347b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Jun 2021 09:39:07 +0200 Subject: [PATCH] - use a slightly higher depth bias for translucent elements. These can otherwise cause z-fighting when being used with non-translucent floor and wall sprites. --- source/core/rendering/scene/hw_drawinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_drawinfo.cpp b/source/core/rendering/scene/hw_drawinfo.cpp index 8edcf1ffc..6f1cd210e 100644 --- a/source/core/rendering/scene/hw_drawinfo.cpp +++ b/source/core/rendering/scene/hw_drawinfo.cpp @@ -565,7 +565,7 @@ void HWDrawInfo::RenderTranslucent(FRenderState &state) { RenderAll.Clock(); - state.SetDepthBias(-1, -128); + state.SetDepthBias(-1, -160); // final pass: translucent stuff state.AlphaFunc(Alpha_GEqual, gl_mask_sprite_threshold);