From 041aad93199928fcbbbe6bddbaa8a4c03302afbf Mon Sep 17 00:00:00 2001 From: timoore Date: Wed, 3 Feb 2010 08:36:05 +0000 Subject: [PATCH] Fix implicit conversion from vec4 to vec3 in material animation shader ATI doesn't like it. Author: Tim Moore --- Shaders/mat-anim.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/mat-anim.frag b/Shaders/mat-anim.frag index 2964da429..e6b5683e0 100644 --- a/Shaders/mat-anim.frag +++ b/Shaders/mat-anim.frag @@ -24,7 +24,7 @@ void main() halfV = normalize(halfVector); NdotHV = max(dot(n, halfV), 0.0); if (gl_FrontMaterial.shininess > 0.0) - specular.rgb = (matSpecular + specular.rgb = (matSpecular.rgb * gl_LightSource[0].specular.rgb * pow(NdotHV, gl_FrontMaterial.shininess)); }