Fix T79672 EEVEE: Motion blur steps value broken after recent change

Was just an issue of `taa_render_sample` being reset to 1 when it shouldn't.
This commit is contained in:
2020-08-11 19:51:58 +02:00
parent d2c150772a
commit 7219abc5bd
2 changed files with 4 additions and 1 deletions

View File

@@ -147,6 +147,7 @@ void EEVEE_effects_init(EEVEE_ViewLayerData *sldata,
if (!stl->effects) {
stl->effects = MEM_callocN(sizeof(EEVEE_EffectsInfo), "EEVEE_EffectsInfo");
stl->effects->taa_render_sample = 1;
}
effects = stl->effects;

View File

@@ -212,7 +212,9 @@ int EEVEE_temporal_sampling_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data
* Reset for each "redraw". When rendering using ogl render,
* we accumulate the redraw inside the drawing loop in eevee_draw_scene().
**/
effects->taa_render_sample = 1;
if (DRW_state_is_opengl_render()) {
effects->taa_render_sample = 1;
}
effects->bypass_drawing = false;
EEVEE_temporal_sampling_create_view(vedata);