[Bf-blender-cvs] [b3638c05e36] cycles_path_guiding: Guiding: Disabling guiding on translucent BSDFs

Sebastian Herholz noreply at git.blender.org
Tue Sep 6 12:14:02 CEST 2022


Commit: b3638c05e36f2090897ee27d56ef74a406f49bd8
Author: Sebastian Herholz
Date:   Tue Sep 6 12:13:28 2022 +0200
Branches: cycles_path_guiding
https://developer.blender.org/rBb3638c05e36f2090897ee27d56ef74a406f49bd8

Guiding: Disabling guiding on translucent BSDFs

===================================================================

M	intern/cycles/kernel/integrator/surface_shader.h

===================================================================

diff --git a/intern/cycles/kernel/integrator/surface_shader.h b/intern/cycles/kernel/integrator/surface_shader.h
index 7d9420494f5..0bc827fc06e 100644
--- a/intern/cycles/kernel/integrator/surface_shader.h
+++ b/intern/cycles/kernel/integrator/surface_shader.h
@@ -52,7 +52,7 @@ ccl_device_inline void surface_shader_prepare_guiding(KernelGlobals kg,
         const float sweight = sc->sample_weight;
         kernel_assert(sweight >= 0.f);
         bsdf_bssrdf_sampling_sum += sweight;
-        if (CLOSURE_IS_BSDF_DIFFUSE(sc->type)) {
+        if (CLOSURE_IS_BSDF_DIFFUSE(sc->type) && sc->type < CLOSURE_BSDF_TRANSLUCENT_ID) {
           diffuse_sampling_fraction += sweight;
         }
         if (CLOSURE_IS_BSSRDF(sc->type)) {



More information about the Bf-blender-cvs mailing list