forked from bartvdbraak/blender
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:
parent
26f1c51ca6
commit
de35827612
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user