diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-11-18 21:25:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-11-18 21:27:37 +0300 |
commit | fd2a155d068fdd3e6a6c3b4d58772b1dc9921291 (patch) | |
tree | 38f28c63a840f25082d769fae48fe19cd7694637 | |
parent | 7c4e4d605c5f7390292586131e126e412e443029 (diff) |
Fix T91797: Cycles volume rendering artifact with overlapping volumes
With the new volume rendering code this was no longer accurate, we always
need to use a new dimension for the next volume segment.
-rw-r--r-- | intern/cycles/kernel/integrator/path_state.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/intern/cycles/kernel/integrator/path_state.h b/intern/cycles/kernel/integrator/path_state.h index de6c3ae8161..eac9ceeae70 100644 --- a/intern/cycles/kernel/integrator/path_state.h +++ b/intern/cycles/kernel/integrator/path_state.h @@ -208,9 +208,7 @@ ccl_device_inline bool path_state_volume_next(IntegratorState state) } /* Random number generator next bounce. */ - if (volume_bounds_bounce > 1) { - INTEGRATOR_STATE_WRITE(state, path, rng_offset) += PRNG_BOUNCE_NUM; - } + INTEGRATOR_STATE_WRITE(state, path, rng_offset) += PRNG_BOUNCE_NUM; return true; } |