From 82cf25dfbfad39a64b620c20bbd0d65915827a44 Mon Sep 17 00:00:00 2001 From: William Leeson Date: Wed, 27 Oct 2021 14:14:43 +0200 Subject: Cycles: Scrambling distance for the PMJ sampler Adds scrambling distance to the PMJ sampler. This is based on the work by Mathieu Menuet in D12318 who created the original implementation for the Sobol sampler. Reviewed By: brecht Maniphest Tasks: T92181 Differential Revision: https://developer.blender.org/D12854 --- intern/cycles/blender/addon/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/cycles/blender/addon/ui.py') diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 47907481b03..dfaae666785 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -290,11 +290,11 @@ class CYCLES_RENDER_PT_sampling_advanced(CyclesButtonsPanel, Panel): col.active = not(cscene.use_adaptive_sampling) col.prop(cscene, "sampling_pattern", text="Pattern") col = layout.column(align=True) - col.active = cscene.sampling_pattern == 'SOBOL' and not cscene.use_adaptive_sampling + col.active = not cscene.use_adaptive_sampling col.prop(cscene, "scrambling_distance", text="Scrambling Distance Strength") col.prop(cscene, "adaptive_scrambling_distance", text="Adaptive Scrambling Distance") col = layout.column(align=True) - col.active = ((cscene.scrambling_distance < 1.0) or cscene.adaptive_scrambling_distance) and cscene.sampling_pattern == 'SOBOL' and not cscene.use_adaptive_sampling + col.active = ((cscene.scrambling_distance < 1.0) or cscene.adaptive_scrambling_distance) and not cscene.use_adaptive_sampling col.prop(cscene, "preview_scrambling_distance", text="Viewport Scrambling Distance") layout.separator() -- cgit v1.2.3