[Bf-blender-cvs] [65c248af724] cycles_path_guiding: Cycles: Explicitly reset all guiding related state variables at path initialization

Sebastian Herholz noreply at git.blender.org
Thu Oct 6 10:43:15 CEST 2022


Commit: 65c248af724ee11b1e68d90486930d1c309e3597
Author: Sebastian Herholz
Date:   Thu Oct 6 10:42:55 2022 +0200
Branches: cycles_path_guiding
https://developer.blender.org/rB65c248af724ee11b1e68d90486930d1c309e3597

Cycles: Explicitly reset all guiding related state variables at path initialization

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

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

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

diff --git a/intern/cycles/kernel/integrator/path_state.h b/intern/cycles/kernel/integrator/path_state.h
index dbc6fc5a883..7197f0f2f3a 100644
--- a/intern/cycles/kernel/integrator/path_state.h
+++ b/intern/cycles/kernel/integrator/path_state.h
@@ -59,6 +59,13 @@ ccl_device_inline void path_state_init_integrator(KernelGlobals kg,
 #ifdef __PATH_GUIDING__
   INTEGRATOR_STATE_WRITE(state, path, unguided_throughput) = 1.0f;
   INTEGRATOR_STATE_WRITE(state, guiding, path_segment) = nullptr;
+  INTEGRATOR_STATE_WRITE(state, guiding, use_surface_guiding) = false;
+  INTEGRATOR_STATE_WRITE(state, guiding, sample_surface_guiding_rand) = 0.5f;
+  INTEGRATOR_STATE_WRITE(state, guiding, surface_guiding_sampling_prob) = 0.0f;
+  INTEGRATOR_STATE_WRITE(state, guiding, bssrdf_sampling_prob) = 0.0f;
+  INTEGRATOR_STATE_WRITE(state, guiding, use_volume_guiding) = false;
+  INTEGRATOR_STATE_WRITE(state, guiding, sample_volume_guiding_rand) = 0.5f;
+  INTEGRATOR_STATE_WRITE(state, guiding, volume_guiding_sampling_prob) = 0.0f;
 #endif
 
 #ifdef __MNEE__



More information about the Bf-blender-cvs mailing list