1
0
Fork 0

tangens for statto

This commit is contained in:
gral@who.net 2010-09-05 21:34:59 +02:00
parent 26e94e0e06
commit def7bab9e6

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) );
float stemp =max(0.0, dot(viewt, vRef)*tan(0.79));
stemp = pow(stemp, exponent);
vec4 specular = vec4(stemp);