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:
authorPatrick Mours <pmours@nvidia.com>2021-01-29 15:35:00 +0300
committerPatrick Mours <pmours@nvidia.com>2021-01-29 15:35:00 +0300
commit9f89166b52b1de880c14847a1d0cd830d7c83f5b (patch)
tree46bd53daebd7bd7cc98c71550c13313218da7c9d /intern/cycles/device
parent821df20797be514b8aee81b8ae73d3efe486bd29 (diff)
Fix T85148: OptiX viewport denoising regression
Commit 6e74a8b69f215e63e136cb4c497e738371ac798f changed the denoiser input passes default to include the normal pass. This does not always produce optimal images though, hence why the default was previously set to only include the color and albedo passes. This restores that behavior, so that viewport denoising with OptiX produces the same results as before.
Diffstat (limited to 'intern/cycles/device')
-rw-r--r--intern/cycles/device/device_task.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/device/device_task.h b/intern/cycles/device/device_task.h
index f9b47c59e95..a9298a9126c 100644
--- a/intern/cycles/device/device_task.h
+++ b/intern/cycles/device/device_task.h
@@ -100,7 +100,9 @@ class DenoiseParams {
neighbor_frames = 2;
clamp_input = true;
- input_passes = DENOISER_INPUT_RGB_ALBEDO_NORMAL;
+ /* Default to color + albedo only, since normal input does not always have the desired effect
+ * when denoising with OptiX. */
+ input_passes = DENOISER_INPUT_RGB_ALBEDO;
start_sample = 0;
}