diff options
Diffstat (limited to 'res/effectlib/calculateRoughness.glsllib')
-rw-r--r-- | res/effectlib/calculateRoughness.glsllib | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/effectlib/calculateRoughness.glsllib b/res/effectlib/calculateRoughness.glsllib index d1e099b..a14083d 100644 --- a/res/effectlib/calculateRoughness.glsllib +++ b/res/effectlib/calculateRoughness.glsllib @@ -55,8 +55,8 @@ float calculateRoughness( in vec3 N, in float roughnessU, in float roughnessV, i float cosPhi = dot( po, minorAxis ); // determine the polar coordinate of viewDir, take that radius as the roughness - float excentricitySquare = 1.0f - square( b / a ); - roughness = b / sqrt( 1.0f - excentricitySquare * square( cosPhi ) ); + float excentricitySquare = 1.0 - square( b / a ); + roughness = b / sqrt( 1.0 - excentricitySquare * square( cosPhi ) ); } return( roughness ); } |