[Bf-blender-cvs] [2838cf0dfe6] master: Fix T53854: branched path tracing correlation bug with transparency in split kernel.
Brecht Van Lommel
noreply at git.blender.org
Tue Jan 23 11:28:51 CET 2018
Commit: 2838cf0dfe6c8b435cc54881bf548e2bbb0096ae
Author: Brecht Van Lommel
Date: Tue Jan 23 10:44:20 2018 +0100
Branches: master
https://developer.blender.org/rB2838cf0dfe6c8b435cc54881bf548e2bbb0096ae
Fix T53854: branched path tracing correlation bug with transparency in split kernel.
===================================================================
M intern/cycles/kernel/split/kernel_next_iteration_setup.h
===================================================================
diff --git a/intern/cycles/kernel/split/kernel_next_iteration_setup.h b/intern/cycles/kernel/split/kernel_next_iteration_setup.h
index 75a0af7567b..81024f0cf99 100644
--- a/intern/cycles/kernel/split/kernel_next_iteration_setup.h
+++ b/intern/cycles/kernel/split/kernel_next_iteration_setup.h
@@ -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 */
More information about the Bf-blender-cvs
mailing list