Fix T53854: branched path tracing correlation bug with transparency in split kernel.

This commit is contained in:
Brecht Van Lommel 2018-01-23 10:44:20 +01:00
parent 9466f8f531
commit 2838cf0dfe
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

@ -70,8 +70,7 @@ ccl_device void kernel_split_branched_indirect_light_end(KernelGlobals *kg, int
}
else {
/* 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 */