diff --git a/wadsrc/static/shaders/glsl/main.fp b/wadsrc/static/shaders/glsl/main.fp index 009427dd2..ba6e9190a 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 (uLightLevel >= 0.0) + if ((uPalLightLevels >> 16) >= 5) // gl_lightmode >= 5 are software lighting modes. { float newlightlevel = 1.0 - R_DoomLightingEquation(uLightLevel); color.rgb *= newlightlevel;