Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Vegdahl <cessen>2022-09-02 18:32:34 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-09-02 18:36:58 +0300
commit49ca810bf302fdf48e37527d1f8d160fcbd958d2 (patch)
treeaa2d11f49bf7aa6278b2b3db68ba3f4b8fe5e062 /intern/cycles/scene
parent4bbbba5bc2fdcd5848376d06eb925060f0d1aebd (diff)
Cycles: enable adaptive sampling for Sobol-Burley
This uses the same sample classification approach as used for PMJ, because it turns out to also work equally well with Sobol-Burley. This also implements a fallback (random classification) that should work "okay" for other samplers, though there are no other samplers at the moment. Differential Revision: https://developer.blender.org/D15845
Diffstat (limited to 'intern/cycles/scene')
-rw-r--r--intern/cycles/scene/integrator.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/intern/cycles/scene/integrator.cpp b/intern/cycles/scene/integrator.cpp
index 86a2c9571c6..e9cd753854f 100644
--- a/intern/cycles/scene/integrator.cpp
+++ b/intern/cycles/scene/integrator.cpp
@@ -217,9 +217,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene
FLT_MAX :
sample_clamp_indirect * 3.0f;
- /* Adaptive sampling requires PMJ, see sample_is_even. */
- kintegrator->sampling_pattern = (use_adaptive_sampling) ? SAMPLING_PATTERN_PMJ :
- sampling_pattern;
+ kintegrator->sampling_pattern = sampling_pattern;
kintegrator->scrambling_distance = scrambling_distance;
if (light_sampling_threshold > 0.0f) {