diff options
author | Pascal Schoen <pascal_schoen@gmx.net> | 2016-11-11 15:04:11 +0300 |
---|---|---|
committer | Pascal Schoen <pascal_schoen@gmx.net> | 2016-11-11 15:04:11 +0300 |
commit | 0103659f5e705b314cde98b0e4a01c14c55acd5e (patch) | |
tree | c2c695254d285cec4bf31bb8fc5c0c9859d9f8ef | |
parent | 0aa68f533529c9fd197a3ab0427f9e41a15456b9 (diff) |
Fixed an error in the clearcoat where it appeared too bright for default
light sources (like directional lights)
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_microfacet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_microfacet.h b/intern/cycles/kernel/closure/bsdf_microfacet.h index 1e83f04148a..ea4e4d34127 100644 --- a/intern/cycles/kernel/closure/bsdf_microfacet.h +++ b/intern/cycles/kernel/closure/bsdf_microfacet.h @@ -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: |