mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +00:00
- clamp added brightness by brightmaps to a light level of 1.0.
This commit is contained in:
parent
32efc092c2
commit
314f8fee49
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ void main()
|
||||||
|
|
||||||
if ((u_flags & RF_Brightmapping) != 0)
|
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 *= lightcolor;
|
||||||
color.rgb += u_fogColor.rgb * shade;
|
color.rgb += u_fogColor.rgb * shade;
|
||||||
|
|
Loading…
Reference in a new issue