Cycles: Fix wrong volume stack update with SSS object intersecting the volume
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 24 Nov 2015 18:32:56 +0000 (23:32 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 25 Nov 2015 08:01:22 +0000 (13:01 +0500)
There's no need in moving ray at all, stack should always be updated from the
original hit point to the scattered one.

intern/cycles/kernel/kernel_path_branched.h

index ee507364b3088226369444c66860ac806c24e47a..cc997e5eb47590cb277bce3796b72b89ba871b71 100644 (file)
@@ -187,9 +187,6 @@ ccl_device void kernel_branched_path_subsurface_scatter(KernelGlobals *kg,
                                            kg,
                                            &volume_ray,
                                            hit_state.volume_stack);
-
-                                       /* Move volume ray forward. */
-                                       volume_ray.P = P;
                                }
 #endif