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:
authorJeroen Bakker <jbakker>2020-05-14 13:44:26 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2020-05-14 13:44:42 +0300
commiteb23b39b7f7f4e0531b9acff3769ec3fa4e236ee (patch)
treee1c63ea2d8a788fa875120ec8cc58261bdaac514 /source/blender/draw/engines/workbench/workbench_private.h
parent80fffba132c58c0c4187b2905f7700f4597aa5c2 (diff)
Fix T76558: Decreasing Viewport Anti-Aliasing Samples Makes Scene Whiter
When setting the Viewport Anti-Aliasing samples in the user preferences to a lower sample count the anti-aliasing was not reset. This lead to incorrect result as the accum buffer would still hold the values of the larger sample count. This fix resets the TAA when the sample count is changed. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7728
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_private.h')
-rw-r--r--source/blender/draw/engines/workbench/workbench_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_private.h b/source/blender/draw/engines/workbench/workbench_private.h
index 2191e09bc24..967bdf9bae0 100644
--- a/source/blender/draw/engines/workbench/workbench_private.h
+++ b/source/blender/draw/engines/workbench/workbench_private.h
@@ -261,6 +261,8 @@ typedef struct WORKBENCH_PrivateData {
/* Temporal Antialiasing */
/** Total number of samples to after which TAA stops accumulating samples. */
int taa_sample_len;
+ /** Total number of samples of the previous TAA. When changed TAA will be reset. */
+ int taa_sample_len_previous;
/** Current TAA sample index in [0..taa_sample_len[ range. */
int taa_sample;
/** Inverse of taa_sample to divide the accumulation buffer. */