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:
parent
e750871f7c
commit
041aad9319
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue