diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-14 18:51:34 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-14 18:53:05 +0300 |
commit | f7d415ab42c3203d370b62d6ed99e7a894030a33 (patch) | |
tree | 396d1755c27d636d1c1cfbefd17f4a2879f561f1 /source/blender/draw/engines/eevee/eevee_temporal_sampling.c | |
parent | 81531d452c54b8dd87c8d45cd5b431372f908274 (diff) |
Fix T58610: EEVEE: camera motion blur renders only one viewport sample
This fix saves the camera matrices in order to not call
BKE_animsys_evaluate_animdata during each draw loop. This function tags
the view as dirty even if the camera does not move.
This effectivly, avoids the constant reset of TAA.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_temporal_sampling.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_temporal_sampling.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c index 67ac6126148..592d11916ac 100644 --- a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c +++ b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c @@ -179,10 +179,7 @@ int EEVEE_temporal_sampling_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data const DRWContextState *draw_ctx = DRW_context_state_get(); const Scene *scene_eval = DEG_get_evaluated_scene(draw_ctx->depsgraph); - if (((scene_eval->eevee.taa_samples != 1) && - /* FIXME the motion blur camera evaluation is tagging view_updated - * thus making the TAA always reset and never stopping rendering. */ - (effects->enabled_effects & EFFECT_MOTION_BLUR) == 0) || + if ((scene_eval->eevee.taa_samples != 1) || DRW_state_is_image_render()) { float persmat[4][4], viewmat[4][4]; |