forked from bartvdbraak/blender
Cycles: Fix wrong size of sobol texture
After reformulation of SSS indirect rays it became possible to try accessing dimension higher than was pre-calculated on scene preparation. This is because we're traversing rays backwards, which means we are using higher dimensions first now.
This commit is contained in:
parent
3637cbbcf8
commit
56c9c1ab43
@ -176,7 +176,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene
|
||||
max_samples = max(max_samples, volume_samples);
|
||||
}
|
||||
|
||||
max_samples *= (max_bounce + transparent_max_bounce + 3);
|
||||
max_samples *= (max_bounce + transparent_max_bounce + 3 + BSSRDF_MAX_HITS);
|
||||
|
||||
int dimensions = PRNG_BASE_NUM + max_samples*PRNG_BOUNCE_NUM;
|
||||
dimensions = min(dimensions, SOBOL_MAX_DIMENSIONS);
|
||||
|
Loading…
Reference in New Issue
Block a user