Cycles: initialize LCG for sss and hair sampling without using the sobol sampler,
slightly faster but also fixes the u/v sampling dimensions not longer being at even values which is needed for best results.
This commit is contained in:
@@ -207,9 +207,9 @@ __device float lcg_step(uint *rng)
|
||||
return (float)*rng * (1.0f/(float)0xFFFFFFFF);
|
||||
}
|
||||
|
||||
__device uint lcg_init(float seed)
|
||||
__device uint lcg_init(uint seed)
|
||||
{
|
||||
uint rng = __float_as_int(seed);
|
||||
uint rng = seed;
|
||||
lcg_step(&rng);
|
||||
return rng;
|
||||
}
|
||||
|
Reference in New Issue
Block a user