diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-26 21:47:50 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-26 21:47:50 +0400 |
commit | e1e247a99b480f81fb76332525002fbc7f776f12 (patch) | |
tree | 8279780b0185681378c5ae36edae2a869351ba46 /intern/cycles/kernel/kernel_random.h | |
parent | 49e8cfd809fe578a20ef266469362b157620729c (diff) |
Fix T38710: volume render issue with transparent surfaces.
Diffstat (limited to 'intern/cycles/kernel/kernel_random.h')
-rw-r--r-- | intern/cycles/kernel/kernel_random.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_random.h b/intern/cycles/kernel/kernel_random.h index ef397269ec2..31cb6ff6abd 100644 --- a/intern/cycles/kernel/kernel_random.h +++ b/intern/cycles/kernel/kernel_random.h @@ -120,6 +120,9 @@ ccl_device_inline float path_rng_1D(KernelGlobals *kg, RNG *rng, int sample, int /* Cranly-Patterson rotation using rng seed */ float shift; + /* using the same *rng value to offset seems to give correlation issues, + * we could hash it with the dimension but this has a performance impact, + * we need to find a solution for this */ if(dimension & 1) shift = (*rng >> 16) * (1.0f/(float)0xFFFF); else |