Cycles: fix sampling issue with certain (transparent) max bounce settings, and

tweak presets/defaults to use 128 instead of 1024.
This commit is contained in:
2011-10-16 17:06:01 +00:00
parent 7b1ef0f416
commit 7600c687b2
3 changed files with 11 additions and 9 deletions

View File

@@ -80,7 +80,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene)
kintegrator->blur_caustics = blur_caustics;
/* sobol directions table */
int dimensions = PRNG_BASE_NUM + (max_bounce + 2)*PRNG_BOUNCE_NUM;
int dimensions = PRNG_BASE_NUM + (max_bounce + transparent_max_bounce + 2)*PRNG_BOUNCE_NUM;
uint *directions = dscene->sobol_directions.resize(SOBOL_BITS*dimensions);
sobol_generate_direction_vectors((uint(*)[SOBOL_BITS])directions, dimensions);