[Bf-blender-cvs] [f670a8a] master: Fix T41709: Bump not rendered correctly behind transparency using Branched Path Tracing
Sergey Sharybin
noreply at git.blender.org
Sat Sep 6 14:19:28 CEST 2014
Commit: f670a8aeaa9ac63f3245bed1ba9bd84c0b575aa3
Author: Sergey Sharybin
Date: Sat Sep 6 18:16:38 2014 +0600
Branches: master
https://developer.blender.org/rBf670a8aeaa9ac63f3245bed1ba9bd84c0b575aa3
Fix T41709: Bump not rendered correctly behind transparency using Branched Path Tracing
===================================================================
M intern/cycles/kernel/kernel_path.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h
index b74822b..515854b 100644
--- a/intern/cycles/kernel/kernel_path.h
+++ b/intern/cycles/kernel/kernel_path.h
@@ -1047,6 +1047,13 @@ ccl_device float4 kernel_branched_path_integrate(KernelGlobals *kg, RNG *rng, in
ray.P = ray_offset(sd.P, -sd.Ng);
ray.t -= sd.ray_length; /* clipping works through transparent */
+
+#ifdef __RAY_DIFFERENTIALS__
+ ray.dP = sd.dP;
+ ray.dD.dx = -sd.dI.dx;
+ ray.dD.dy = -sd.dI.dy;
+#endif
+
#ifdef __VOLUME__
/* enter/exit volume */
kernel_volume_stack_enter_exit(kg, &sd, state.volume_stack);
More information about the Bf-blender-cvs
mailing list