From 2321e4aa7f2e9a87b39b2f0800a2e07b880c284c Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 9 Jan 2024 13:38:24 +0100 Subject: [PATCH] use og values for pal --- src/hardware/r_opengl/r_opengl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 4d1fb626d..7ef8aed94 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -709,8 +709,7 @@ static float shader_leveltime = 0; "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" \ - "float cap = (155.0 - light) * 0.26;\n" \ - "return max(startmap * STARTMAP_FUDGE - scale * 0.5 * SCALE_FUDGE, cap);\n" \ + "return (startmap * STARTMAP_FUDGE - scale * MULT_FUDGE * SCALE_FUDGE);\n" \ "}\n" #define GLSL_DOOM_LIGHT_EQUATION \ @@ -762,11 +761,13 @@ static float shader_leveltime = 0; #define GLSL_FLOOR_FUDGES \ "#define STARTMAP_FUDGE 1.06\n" \ + "#define MULT_FUDGE 0.5\n" \ "#define SCALE_FUDGE 1.15\n" #define GLSL_WALL_FUDGES \ "#define STARTMAP_FUDGE 1.05\n" \ - "#define SCALE_FUDGE 2.2\n" + "#define MULT_FUDGE 1.0\n" \ + "#define SCALE_FUDGE 1.1\n" #define GLSL_SOFTWARE_FRAGMENT_SHADER_FLOORS \ GLSL_SOFTWARE_UNIFORMS \