Fix T53854: branched path tracing correlation bug with transparency.

This was broken in d750d18.
This commit is contained in:
Brecht Van Lommel 2018-01-22 13:47:53 +01:00
parent b06bd20a6b
commit 8a2d09eb9f
Notes: blender-bot 2023-02-14 06:14:47 +01:00
Referenced by issue #53854, Overlapping volumes render incorrectly with branched path tracing
1 changed files with 1 additions and 2 deletions

View File

@ -552,8 +552,7 @@ ccl_device void kernel_branched_path_integrate(KernelGlobals *kg,
}
/* Update Path State */
state.flag |= PATH_RAY_TRANSPARENT;
state.transparent_bounce++;
path_state_next(kg, &state, LABEL_TRANSPARENT);
ray.P = ray_offset(sd.P, -sd.Ng);
ray.t -= sd.ray_length; /* clipping works through transparent */