diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-16 21:06:01 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-16 21:06:01 +0400 |
commit | 7600c687b27c07e8cad2ac1fdef912cd4ba47492 (patch) | |
tree | a147d458af6b9f2f0acb7023af4a0b0b38f66994 /intern/cycles/render/integrator.cpp | |
parent | 7b1ef0f41620514be98fc9fff9db9bd59ae57e0d (diff) |
Cycles: fix sampling issue with certain (transparent) max bounce settings, and
tweak presets/defaults to use 128 instead of 1024.
Diffstat (limited to 'intern/cycles/render/integrator.cpp')
-rw-r--r-- | intern/cycles/render/integrator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp index 57689be3965..78ea464d836 100644 --- a/intern/cycles/render/integrator.cpp +++ b/intern/cycles/render/integrator.cpp @@ -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); |