Cycles: Fix wrong volume stack update with SSS object intersecting the volume

There's no need in moving ray at all, stack should always be updated from the
original hit point to the scattered one.
This commit is contained in:
Sergey Sharybin 2015-11-24 23:32:56 +05:00
parent 26f1c51ca6
commit de35827612

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