1
0
Fork 0

VC: attempt at fixing non-NVIDIA display shader problem - but better

This commit is contained in:
Josh Davidson 2021-11-18 16:39:22 -05:00
parent 0e6404869f
commit 33eddc20f3

View file

@ -100,7 +100,7 @@ void main (void) {
nDotVP = max(0.0, nDotVP);
vec3 diffuse = gl_FrontMaterial.diffuse.rgb * gl_LightSource[0].diffuse.rgb * nDotVP;
//color = clamp(color+specular.rgb+ambient+diffuse, 0.0, 1.0); // broken on non-NVIDIA
color = clamp(color+specular.rgb+ambient, 0.0, 1.0); // +diffuse broken on non-NVIDIA
vec4 dustTexel = texture2D(dust_texture, gl_TexCoord[0].st);
dustTexel.rgb *= gl_LightSource[0].diffuse.rgb * nDotVP;