From 148b0fef0980ab1263823ef4220d25caa0918d82 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 19 Mar 2018 20:20:01 +0100 Subject: Fix T54317: overlapping volume render bug after recent changes. Increasing the samplig dimensions like this is not optimal, I'm looking into some deeper changes to reuse the random number and change the RR probabilities, but this should fix the bug for now. --- intern/cycles/kernel/kernel_path_branched.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'intern/cycles/kernel/kernel_path_branched.h') diff --git a/intern/cycles/kernel/kernel_path_branched.h b/intern/cycles/kernel/kernel_path_branched.h index d43d418db29..66f67c3e2c4 100644 --- a/intern/cycles/kernel/kernel_path_branched.h +++ b/intern/cycles/kernel/kernel_path_branched.h @@ -567,10 +567,7 @@ ccl_device void kernel_branched_path_integrate(KernelGlobals *kg, #ifdef __VOLUME__ } else { - /* For volume bounding meshes we pass through without counting transparent - * bounces, only sanity check in case self intersection gets us stuck. */ - state.volume_bounds_bounce++; - if (state.volume_bounds_bounce > VOLUME_BOUNDS_MAX) { + if(!path_state_volume_next(kg, &state)) { break; } } -- cgit v1.2.3