1
0
Fork 0

Fix implicit conversion from vec4 to vec3 in material animation shader

ATI doesn't like it.


Author: Tim Moore <timoore@redhat.com>
This commit is contained in:
timoore 2010-02-03 08:36:05 +00:00
parent e750871f7c
commit 041aad9319

View file

@ -24,7 +24,7 @@ void main()
halfV = normalize(halfVector); halfV = normalize(halfVector);
NdotHV = max(dot(n, halfV), 0.0); NdotHV = max(dot(n, halfV), 0.0);
if (gl_FrontMaterial.shininess > 0.0) if (gl_FrontMaterial.shininess > 0.0)
specular.rgb = (matSpecular specular.rgb = (matSpecular.rgb
* gl_LightSource[0].specular.rgb * gl_LightSource[0].specular.rgb
* pow(NdotHV, gl_FrontMaterial.shininess)); * pow(NdotHV, gl_FrontMaterial.shininess));
} }