diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-02-12 17:22:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-12 17:22:21 +0300 |
commit | dad32cbd17790cbd6d8fd30758a69315274fbb24 (patch) | |
tree | df77bfd23bae33ae06f06135df1affbb2588ebcc /intern/cycles | |
parent | 7db00556fa9a14f8617c2ec1e35ae834689f0da7 (diff) | |
parent | 9febda912b04559277d465b9610334c04a73d2ce (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/kernel_bake.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_bake.h b/intern/cycles/kernel/kernel_bake.h index ddcf94be1de..ded914c05d7 100644 --- a/intern/cycles/kernel/kernel_bake.h +++ b/intern/cycles/kernel/kernel_bake.h @@ -233,6 +233,7 @@ ccl_device void kernel_bake_evaluate( ccl_global float *differential = buffer + kernel_data.film.pass_bake_differential; ccl_global float *output = buffer + kernel_data.film.pass_combined; + int seed = __float_as_uint(primitive[0]); int prim = __float_as_uint(primitive[1]); if (prim == -1) return; @@ -240,7 +241,7 @@ ccl_device void kernel_bake_evaluate( prim += kernel_data.bake.tri_offset; /* Random number generator. */ - uint rng_hash = hash_uint2(x, y) ^ kernel_data.integrator.seed; + uint rng_hash = hash_uint(seed) ^ kernel_data.integrator.seed; int num_samples = kernel_data.integrator.aa_samples; float filter_x, filter_y; |