1
0
Fork 0

better reflection

This commit is contained in:
gral@who.net 2010-09-05 22:11:29 +02:00
parent def7bab9e6
commit 713f5943bb

View file

@ -70,7 +70,7 @@ vec4 invdepth = 1.0 - wdepth;
//calculate specular highlight
vec4 vRef = normalize(reflect(lightTS, vNorm));
float stemp =max(0.0, dot(viewt, vRef)*tan(0.79));
float stemp =max(0.0, dot(viewt, vRef)*tan(0.788));
stemp = pow(stemp, exponent);
vec4 specular = vec4(stemp);