diff --git a/wadsrc/static/engine/shaders/glsl/polymost.fp b/wadsrc/static/engine/shaders/glsl/polymost.fp index eacde0db7..562ffc80c 100644 --- a/wadsrc/static/engine/shaders/glsl/polymost.fp +++ b/wadsrc/static/engine/shaders/glsl/polymost.fp @@ -214,7 +214,7 @@ void main() if ((u_flags & RF_Brightmapping) != 0) { - lightcolor += texture(s_brightmap, v_texCoord.xy).rgb; + lightcolor = clamp(lightcolor + texture(s_brightmap, v_texCoord.xy).rgb, 0.0, 1.0); } color.rgb *= lightcolor; color.rgb += u_fogColor.rgb * shade;