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:
authorClément Foucault <foucault.clem@gmail.com>2021-04-27 14:42:43 +0300
committerClément Foucault <foucault.clem@gmail.com>2021-04-27 14:42:43 +0300
commitf1a5c5f6cb58f1e2d87b73307ca2995304a00943 (patch)
treee9a647d15345c8fdee4770d425309e37f4aa5847 /source/blender/draw/engines/eevee/eevee_instance.cc
parent556478c20e6e2725193c66490eca1efe2a56fb36 (diff)
EEVEE: Film/Sampling: Add smooth transition
Add a smooth transition to avoid flickering of stochastic effects such as soft shadows. This use a simple blend method to progressively reveal the render after some low sample count to avoid most of the flickering. Parameters are hardcoded for now.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_instance.cc')
-rw-r--r--source/blender/draw/engines/eevee/eevee_instance.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_instance.cc b/source/blender/draw/engines/eevee/eevee_instance.cc
index 7afcf64cf56..74d52764091 100644
--- a/source/blender/draw/engines/eevee/eevee_instance.cc
+++ b/source/blender/draw/engines/eevee/eevee_instance.cc
@@ -255,7 +255,7 @@ void Instance::draw_viewport(DefaultFramebufferList *dfbl)
// lookdev_->resolve_onto(dfbl->default_fb);
// }
- if (!sampling.finished()) {
+ if (!sampling.finished_viewport()) {
DRW_viewport_request_redraw();
}
}