- clamp added brightness by brightmaps to a light level of 1.0.

This commit is contained in:
Christoph Oelckers 2020-02-27 18:10:38 +01:00
parent 32efc092c2
commit 314f8fee49

View file

@ -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;