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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-11 11:13:46 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-11 16:26:06 +0300
commit6503b4f90f3336b22eff0bd0b61f86fd2cfd531b (patch)
tree7c9798bdd98180b4a8142056bac778672b2bf781 /intern/cycles/render
parent0152bf2edfdcc3288d57445511f9fd58b153d5a3 (diff)
Fix T61831: Denoising Clean pass not scaled correctly with samples.
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/buffers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp
index 66b8ef73acc..c81eafdbc08 100644
--- a/intern/cycles/render/buffers.cpp
+++ b/intern/cycles/render/buffers.cpp
@@ -184,6 +184,7 @@ bool RenderBuffers::get_denoising_pass_rect(int type, float exposure, int sample
if(type == DENOISING_PASS_CLEAN) {
/* The clean pass isn't changed by prefiltering, so we use the original one there. */
offset = type + params.get_denoising_offset();
+ scale /= sample;
}
else if (type == DENOISING_PASS_PREFILTERED_COLOR && !params.denoising_prefiltered_pass) {
/* If we're not saving the prefiltering result, return the original noisy pass. */