Olaf Flebbe: Typo in shader, really check argument of pow()
This commit is contained in:
parent
1cdaafa20d
commit
02bd978ee9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue