forked from bartvdbraak/blender
Fix T41709: Bump not rendered correctly behind transparency using Branched Path Tracing
This commit is contained in:
parent
1b319669d0
commit
f670a8aeaa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user