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:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue