From 8d868c9ad89ee412c84ec4ef3aba02738abea514 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 13 Nov 2026 15:44:31 +0100 Subject: [PATCH] adjust floor fudge for palette render this significantly more matches software especially when drawing horizonlines as gl was too dark in the distance compared to software --- src/hardware/hw_shaders.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hardware/hw_shaders.h b/src/hardware/hw_shaders.h index e0cc62157..5f30f56e7 100644 --- a/src/hardware/hw_shaders.h +++ b/src/hardware/hw_shaders.h @@ -196,7 +196,11 @@ // hand tuned adjustments for light level calculation #define GLSL_FLOOR_FUDGES \ "#define STARTMAP_FUDGE 1.06\n" \ - "#define SCALE_FUDGE 1.15\n" + "#ifdef SRB2_PALETTE_RENDERING\n" \ + "#define SCALE_FUDGE 1.3\n" \ + "#else\n" \ + "#define SCALE_FUDGE 1.15\n" \ + "#endif\n" #define GLSL_WALL_FUDGES \ "#define STARTMAP_FUDGE 1.05\n" \