1
0
Fork 0

Olaf Flebbe: Typo in shader, really check argument of pow()

This commit is contained in:
Frederic Bouvier 2012-04-14 22:15:51 +02:00
parent 1cdaafa20d
commit 02bd978ee9

View file

@ -27,7 +27,7 @@ void main (void)
float nDotHV = max(0.0, dot(N, gl_LightSource[0].halfVector.xyz)); float nDotHV = max(0.0, dot(N, gl_LightSource[0].halfVector.xyz));
float pf; float pf;
if (nDotVP == 0.0) if (nDotHV == 0.0)
pf = 0.0; pf = 0.0;
else else
pf = pow(nDotHV, gl_FrontMaterial.shininess); pf = pow(nDotHV, gl_FrontMaterial.shininess);