diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-11 11:13:46 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-11 16:26:06 +0300 |
commit | 6503b4f90f3336b22eff0bd0b61f86fd2cfd531b (patch) | |
tree | 7c9798bdd98180b4a8142056bac778672b2bf781 /intern | |
parent | 0152bf2edfdcc3288d57445511f9fd58b153d5a3 (diff) |
Fix T61831: Denoising Clean pass not scaled correctly with samples.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/buffers.cpp | 1 |
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. */ |