Fix T41709: Bump not rendered correctly behind transparency using Branched Path Tracing

This commit is contained in:
Sergey Sharybin 2014-09-06 18:16:38 +06:00
parent 1b319669d0
commit f670a8aeaa
Notes: blender-bot 2023-02-14 10:07:13 +01:00
Referenced by issue #41709, Bump not rendered correctly behind transparency using Branched Path Tracing
1 changed files with 7 additions and 0 deletions

View File

@ -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);