Fixed an error in the clearcoat where it appeared too bright for default

light sources (like directional lights)
This commit is contained in:
2016-11-11 13:04:11 +01:00
parent 0aa68f5335
commit 0103659f5e

View File

@@ -259,7 +259,7 @@ ccl_device_forceinline float D_GTR1(float NdotH, float alpha)
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_1_PI_F * logf(alpha2) * t);
return (alpha2 - 1.0f) / (M_PI_F * logf(alpha2) * t);
}
/* GGX microfacet with Smith shadow-masking from: