[Bf-blender-cvs] [7046bbd581b] soc-2022-many-lights-sampling: Fix wrong normal used for mesh light MIS when coming from volume

Brecht Van Lommel noreply at git.blender.org
Mon Nov 14 14:13:18 CET 2022


Commit: 7046bbd581b4677b840c6a3571e7384cc655008b
Author: Brecht Van Lommel
Date:   Mon Nov 14 13:50:45 2022 +0100
Branches: soc-2022-many-lights-sampling
https://developer.blender.org/rB7046bbd581b4677b840c6a3571e7384cc655008b

Fix wrong normal used for mesh light MIS when coming from volume

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

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

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

diff --git a/intern/cycles/kernel/integrator/shade_volume.h b/intern/cycles/kernel/integrator/shade_volume.h
index 86dd355cbd8..90b26f4759a 100644
--- a/intern/cycles/kernel/integrator/shade_volume.h
+++ b/intern/cycles/kernel/integrator/shade_volume.h
@@ -973,6 +973,7 @@ ccl_device_forceinline bool integrate_volume_phase_scatter(
 
   /* Update path state */
   INTEGRATOR_STATE_WRITE(state, path, mis_ray_pdf) = phase_pdf;
+  INTEGRATOR_STATE_WRITE(state, path, mis_origin_n) = zero_float3();
   INTEGRATOR_STATE_WRITE(state, path, min_ray_pdf) = fminf(
       unguided_phase_pdf, INTEGRATOR_STATE(state, path, min_ray_pdf));



More information about the Bf-blender-cvs mailing list