1
0
Fork 0

VC: attempt at fixing non-NVIDIA display shader problem

This commit is contained in:
Josh Davidson 2021-11-18 16:37:10 -05:00
parent f9503cb221
commit 0e6404869f

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);
//color = clamp(color+specular.rgb+ambient+diffuse, 0.0, 1.0); // broken on non-NVIDIA
vec4 dustTexel = texture2D(dust_texture, gl_TexCoord[0].st);
dustTexel.rgb *= gl_LightSource[0].diffuse.rgb * nDotVP;