[Bf-blender-cvs] [a419ec09f14] soc-2020-production-ready-light-tree: Fixed motion blur with light tree enabled.

Sam Kottler noreply at git.blender.org
Fri Jul 3 20:28:37 CEST 2020


Commit: a419ec09f14afd86b0c8e7f1e3678e4129f79cff
Author: Sam Kottler
Date:   Fri Jul 3 12:27:35 2020 -0600
Branches: soc-2020-production-ready-light-tree
https://developer.blender.org/rBa419ec09f14afd86b0c8e7f1e3678e4129f79cff

Fixed motion blur with light tree enabled.

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

M	intern/cycles/kernel/kernel_path_surface.h

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

diff --git a/intern/cycles/kernel/kernel_path_surface.h b/intern/cycles/kernel/kernel_path_surface.h
index f8bc9fd7240..c8634c30dd8 100644
--- a/intern/cycles/kernel/kernel_path_surface.h
+++ b/intern/cycles/kernel/kernel_path_surface.h
@@ -126,6 +126,10 @@ ccl_device void accum_light_tree_contribution(KernelGlobals *kg,
 
     /* compute and accumulate the total contribution of this light */
     Ray light_ray;
+    light_ray.t = 0.0f;
+#ifdef __OBJECT_MOTION__
+    light_ray.time = sd->time;
+#endif
     BsdfEval L_light;
     bool is_lamp;
     float terminate = path_state_rng_light_termination(kg, state);
@@ -246,6 +250,7 @@ ccl_device_noinline_cpu void kernel_branched_path_surface_connect_light(
     Ray light_ray;
     bool is_lamp;
 
+    light_ray.t = 0.0f;
 #    ifdef __OBJECT_MOTION__
     light_ray.time = sd->time;
 #    endif



More information about the Bf-blender-cvs mailing list