Fix T81157: Eevee MotionBlur steps setting make ao pass darker

Issue introduced by 68651534c2 due to an incorrect merge/rebase
It was resetting the AO buffer every time the time step happened.
This commit is contained in:
Jeroen Bakker 2020-09-25 10:11:47 +02:00
parent 56cd92413f
commit 59afbf0c04
Notes: blender-bot 2023-02-14 06:42:54 +01:00
Referenced by issue #81157, Eevee MotionBlur steps setting make  ao pass darker
1 changed files with 0 additions and 6 deletions

View File

@ -132,12 +132,6 @@ void EEVEE_occlusion_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata
GPU_framebuffer_clear_color(fbl->ao_accum_fb, clear);
}
/* Clear texture. */
if (DRW_state_is_image_render() || effects->taa_current_sample == 1) {
GPU_framebuffer_bind(fbl->ao_accum_fb);
GPU_framebuffer_clear_color(fbl->ao_accum_fb, clear);
}
/* Accumulation pass */
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND_ADD;
DRW_PASS_CREATE(psl->ao_accum_ps, state);