From 457cae0ed9d24775f7616ad0aa6deb17eca455f5 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 theres still some things left to recheck to better match software lighting (ex. wallcontrast) but too lazy atm --- 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 51c0ec001..adcdc21a5 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" \