[Bf-blender-cvs] [59afbf0c047] master: Fix T81157: Eevee MotionBlur steps setting make ao pass darker

Jeroen Bakker noreply at git.blender.org
Fri Sep 25 10:15:40 CEST 2020


Commit: 59afbf0c047588fc3d819b22d7a854e37b20d081
Author: Jeroen Bakker
Date:   Fri Sep 25 10:11:47 2020 +0200
Branches: master
https://developer.blender.org/rB59afbf0c047588fc3d819b22d7a854e37b20d081

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.

===================================================================

M	source/blender/draw/engines/eevee/eevee_occlusion.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list