* Fix object scaling update issue with interactive rendering + static BVH.
* Fix negative scaling issue with static BVH.
* Fix #29217: excessive fireflies in first sample.
This commit is contained in:
Brecht Van Lommel
2011-11-12 14:29:52 +00:00
parent 817b6cb9a8
commit fc42a6185d
6 changed files with 45 additions and 9 deletions

View File

@@ -22,6 +22,11 @@ typedef uint RNG;
#ifdef __SOBOL__
/* skip initial numbers that are not as well distributed, especially the
first sequence is just 0 everywhere, which can be problematic for e.g.
path termination */
#define SOBOL_SKIP 64
/* High Dimensional Sobol */
/* van der corput radical inverse */
@@ -103,7 +108,7 @@ __device_inline float path_rng(KernelGlobals *kg, RNG *rng, int sample, int dime
return r;
#else
/* compute sobol sequence value using direction vectors */
uint result = sobol_dimension(kg, sample, dimension);
uint result = sobol_dimension(kg, sample + SOBOL_SKIP, dimension);
float r = (float)result * (1.0f/(float)0xFFFFFFFF);
/* Cranly-Patterson rotation using rng seed */