From 4ed4d014a559538969771732f88d2b0613550ca3 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 15 Dec 2025 22:59:35 +0100 Subject: [PATCH] Fix wall/floor fudges being unused for shader colourmap calc --- src/hardware/hw_shaders.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_shaders.h b/src/hardware/hw_shaders.h index d9d61d62f..3978f6207 100644 --- a/src/hardware/hw_shaders.h +++ b/src/hardware/hw_shaders.h @@ -83,7 +83,8 @@ "float lightz = clamp(z / 16.0, 0.0, 127.0);\n" \ "float startmap = (15.0 - lightnum) * 4.0;\n" \ "float scale = 160.0 / (lightz + 1.0);\n" \ - "return startmap - scale * 0.5;\n" \ + "float cap = (155.0 - light) * 0.26;\n" \ + "return max(startmap * STARTMAP_FUDGE - scale * 0.5 * SCALE_FUDGE, cap);\n" \ "}\n" // lighting cap adjustment: // first num (155.0), increase to make it start to go dark sooner