Fix T61831: Denoising Clean pass not scaled correctly with samples.

This commit is contained in:
Brecht Van Lommel 2019-03-11 09:13:46 +01:00
parent 0152bf2edf
commit 6503b4f90f
Notes: blender-bot 2023-02-14 08:38:11 +01:00
Referenced by issue #61831, Blender overexposes Denoising Clean Pass in proportion to the amount of samples
1 changed files with 1 additions and 0 deletions

View File

@ -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. */