Fix #36620: sss + indirect light rendering artifacts, due to wrong correlation in

the random numbers.
This commit is contained in:
Brecht Van Lommel
2013-09-01 14:10:40 +00:00
parent 902e1d0b53
commit f3252c261d
2 changed files with 4 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene
max_samples = max(max_samples, max(ao_samples, max(mesh_light_samples, subsurface_samples)));
}
max_samples *= (max_bounce + transparent_max_bounce + 2);
max_samples *= (max_bounce + transparent_max_bounce + 3);
int dimensions = PRNG_BASE_NUM + max_samples*PRNG_BOUNCE_NUM;
dimensions = min(dimensions, SOBOL_MAX_DIMENSIONS);