Use the seed value in random value generation.
I forgot to add this in. It wasn't noticable, since the QMC sequences did use the seed, and we probably don't ever get to the random values for 15+ light bounces. But it seems worth fixing anyway!
This commit is contained in:
parent
deaacd73fb
commit
5114d428da
|
@ -712,7 +712,7 @@ fn get_sample(dimension: u32, i: u32, pixel_co: (u32, u32), seed: u32) -> f32 {
|
||||||
_ => {
|
_ => {
|
||||||
// Random sampling.
|
// Random sampling.
|
||||||
use crate::hash::hash_u32_to_f32;
|
use crate::hash::hash_u32_to_f32;
|
||||||
hash_u32_to_f32(dimension ^ (i << 16), pixel_id)
|
hash_u32_to_f32(dimension ^ (i << 16), hash_u32(pixel_id, seed))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user