tangens for statto
This commit is contained in:
parent
26e94e0e06
commit
def7bab9e6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue