Cycles: Cleanup, space after keyword

This commit is contained in:
Sergey Sharybin 2017-04-24 11:21:35 +02:00
parent d67609697e
commit 50bfaffc6b
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ ccl_device_forceinline float3 reflection_color(const MicrofacetBsdf *bsdf, float
ccl_device_forceinline float D_GTR1(float NdotH, float alpha)
{
if (alpha >= 1.0f) return M_1_PI_F;
if(alpha >= 1.0f) return M_1_PI_F;
float alpha2 = alpha*alpha;
float t = 1.0f + (alpha2 - 1.0f) * NdotH*NdotH;
return (alpha2 - 1.0f) / (M_PI_F * logf(alpha2) * t);