diff options
author | Stefan Werner <stefan.werner@intel.com> | 2022-02-09 13:22:32 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@intel.com> | 2022-02-12 00:41:17 +0300 |
commit | f3c58c65054fb3b0c0c09ede249c71fb4dd2c62e (patch) | |
tree | 2f46e3e82356ff906f5a260ff715479b85a05363 /intern/cycles | |
parent | ad53cb0b9df4543fc26ca1e8c690afffb1615bc9 (diff) |
Cycles: Removed redundant/buggy code in multiscatter BSDF
A zero length vector was normalized and the resulting NaN used in further calculations.
This caused trouble on some compilers when using fast math.
Reviewed By: brecht, sergey
Differential Revision: https://developer.blender.org/D14058
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h b/intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h index 8820f672862..e4fcf0e6ba3 100644 --- a/intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h +++ b/intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h @@ -193,9 +193,6 @@ ccl_device_forceinline float3 MF_FUNCTION_FULL_NAME(mf_sample)(float3 wi, bool outside = true; float F0 = fresnel_dielectric_cos(1.0f, eta); - if (use_fresnel) { - throughput = interpolate_fresnel_color(wi, normalize(wi + wr), eta, F0, cspec0); - } int order; for (order = 0; order < 10; order++) { |