diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-09-25 11:11:47 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-09-25 11:15:37 +0300 |
commit | 59afbf0c047588fc3d819b22d7a854e37b20d081 (patch) | |
tree | 87503ff38d4ae25979c850e30729df652c70ed12 | |
parent | 56cd92413f8fb9d9b628d18c9c986f413f77d8b9 (diff) |
Fix T81157: Eevee MotionBlur steps setting make ao pass darker
Issue introduced by 68651534c263 due to an incorrect merge/rebase
It was resetting the AO buffer every time the time step happened.
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_occlusion.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_occlusion.c b/source/blender/draw/engines/eevee/eevee_occlusion.c index 3c684c467a4..46f9c775335 100644 --- a/source/blender/draw/engines/eevee/eevee_occlusion.c +++ b/source/blender/draw/engines/eevee/eevee_occlusion.c @@ -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); |