diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-03-26 13:13:36 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-03-27 02:08:30 +0300 |
commit | a7aee250b82161592bb673adf59508e759a867f4 (patch) | |
tree | a82f2ce17d06cfdfd5634b7a3da7cd22b219f485 /intern/cycles/kernel/kernel_path_state.h | |
parent | 3c45fdd171fa6ebd65f19f9fac9b204865e13136 (diff) |
Fix T54420: too much volume render noise with multiple volume objects.
Random numbers for step offset were correlated, now use stratified samples
which reduces noise as well for some types of volumes, mainly procedural
ones where the step size is bigger than the volume features.
Diffstat (limited to 'intern/cycles/kernel/kernel_path_state.h')
-rw-r--r-- | intern/cycles/kernel/kernel_path_state.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_path_state.h b/intern/cycles/kernel/kernel_path_state.h index 90937dbf86e..479bb22d780 100644 --- a/intern/cycles/kernel/kernel_path_state.h +++ b/intern/cycles/kernel/kernel_path_state.h @@ -60,8 +60,6 @@ ccl_device_inline void path_state_init(KernelGlobals *kg, if(kernel_data.integrator.use_volumes) { /* Initialize volume stack with volume we are inside of. */ kernel_volume_stack_init(kg, stack_sd, state, ray, state->volume_stack); - /* Seed RNG for cases where we can't use stratified samples .*/ - state->rng_congruential = lcg_init(rng_hash + sample*0x51633e2d); } else { state->volume_stack[0].shader = SHADER_NONE; |