[Bf-blender-cvs] [56c9c1a] master: Cycles: Fix wrong size of sobol texture
Sergey Sharybin
noreply at git.blender.org
Thu Jul 14 11:25:43 CEST 2016
Commit: 56c9c1ab43b563246e7ecb925d8c34f6ffa85395
Author: Sergey Sharybin
Date: Thu Jul 14 11:11:23 2016 +0200
Branches: master
https://developer.blender.org/rB56c9c1ab43b563246e7ecb925d8c34f6ffa85395
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.
===================================================================
M intern/cycles/render/integrator.cpp
===================================================================
diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp
index 2a10eb4..63914e5 100644
--- a/intern/cycles/render/integrator.cpp
+++ b/intern/cycles/render/integrator.cpp
@@ -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);
More information about the Bf-blender-cvs
mailing list