From 39513cf7aef33dd0de3afd662815c64aafa870b5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 9 Aug 2021 20:31:21 +0200 Subject: [PATCH] Revert "- eliminate an unexpected slow path in the fragment shader." This reverts commit cd5aa65fdab569bbc32a05ba9999e48929ec70aa. This does not work as expected, needs more investigation. --- wadsrc/static/shaders/glsl/main.fp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/glsl/main.fp b/wadsrc/static/shaders/glsl/main.fp index ba6e9190ae..009427dd2e 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -595,7 +595,7 @@ vec4 getLightColor(Material material, float fogdist, float fogfactor) { vec4 color = vColor; - if ((uPalLightLevels >> 16) >= 5) // gl_lightmode >= 5 are software lighting modes. + if (uLightLevel >= 0.0) { float newlightlevel = 1.0 - R_DoomLightingEquation(uLightLevel); color.rgb *= newlightlevel;