Fix T41873: Different 'seed' values do not yield different noise patterns when using cycles texture bake

As per instructions by Brecht Van Lommel.
This commit is contained in:
Dalai Felinto 2014-11-11 10:52:58 -02:00
parent 32a4403617
commit 63d0197f9b
Notes: blender-bot 2023-02-14 10:04:47 +01:00
Referenced by issue #41873, Different 'seed' values do not yield different noise patterns when using cycles texture bake
1 changed files with 2 additions and 2 deletions

View File

@ -198,10 +198,10 @@ ccl_device void kernel_bake_evaluate(KernelGlobals *kg, ccl_global uint4 *input,
int num_samples = kernel_data.integrator.aa_samples;
/* random number generator */
RNG rng = cmj_hash(offset + i, 0);
RNG rng = cmj_hash(offset + i, kernel_data.integrator.seed);
#if 0
uint rng_state = cmj_hash(i, 0);
uint rng_state = cmj_hash(i, kernel_data.integrator.seed);
float filter_x, filter_y;
path_rng_init(kg, &rng_state, sample, num_samples, &rng, 0, 0, &filter_x, &filter_y);