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:
Nathan Vegdahl 2020-03-16 09:57:01 +09:00
parent deaacd73fb
commit 5114d428da

View File

@ -712,7 +712,7 @@ fn get_sample(dimension: u32, i: u32, pixel_co: (u32, u32), seed: u32) -> f32 {
_ => {
// Random sampling.
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))
}
}
}