Fix #123227 : EEVEE : Ghosting on viewport rendering

Pull Request: https://projects.blender.org/blender/blender/pulls/123308
This commit is contained in:
Miguel Pozo
2024-06-17 13:44:16 +02:00
parent 9a6a822dd6
commit 86bbd2d3a5
2 changed files with 1 additions and 5 deletions

View File

@@ -432,8 +432,6 @@ void Film::init(const int2 &extent, const rcti *output_rect)
cryptomatte_tx_.clear(float4(0.0f));
}
}
force_disable_reprojection_ = (scene_eevee.flag & SCE_EEVEE_TAA_REPROJECTION) == 0;
}
void Film::sync()
@@ -518,7 +516,7 @@ void Film::end_sync()
use_reprojection_ = inst_.sampling.interactive_mode();
/* Just bypass the reprojection and reset the accumulation. */
if (inst_.is_viewport() && force_disable_reprojection_ && inst_.sampling.is_reset()) {
if (!use_reprojection_ && inst_.sampling.is_reset()) {
use_reprojection_ = false;
data_.use_history = false;
}

View File

@@ -69,8 +69,6 @@ class Film {
SwapChain<Texture, 2> combined_tx_;
/** Weight buffers. Double buffered to allow updating it during accumulation. */
SwapChain<Texture, 2> weight_tx_;
/** User setting to disable reprojection. Useful for debugging or have a more precise render. */
bool force_disable_reprojection_ = false;
PassSimple accumulate_ps_ = {"Film.Accumulate"};
PassSimple cryptomatte_post_ps_ = {"Film.Cryptomatte.Post"};