diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-07-09 15:34:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-07-09 15:34:56 +0300 |
commit | 484794ce6747068f898273328138fb96c263feac (patch) | |
tree | 79da5e123e2cab9f9f561f51ede297b795b5b00a /source/blender/draw/engines/eevee/eevee_private.h | |
parent | 986ff461fb7ff361f5fb1e5aab49e4f8892258e0 (diff) |
Eevee: Fix first sample being accumulated without SSR
We check if the previous iteration (sample) was using a valid double buffer.
If it wasn't, we request another iteration.
This fix the issue for viewport,viewport render and image render.
Related to T65761 Eevee render inconsistency between 3D View, Viewport render, and F12 Render
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_private.h')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_private.h b/source/blender/draw/engines/eevee/eevee_private.h index 93a4e43d3af..bd08a61e3b8 100644 --- a/source/blender/draw/engines/eevee/eevee_private.h +++ b/source/blender/draw/engines/eevee/eevee_private.h @@ -562,6 +562,7 @@ typedef struct EEVEE_EffectsInfo { /* SSR */ bool reflection_trace_full; bool ssr_was_persp; + bool ssr_was_valid_double_buffer; int ssr_neighbor_ofs; int ssr_halfres_ofs[2]; struct GPUTexture *ssr_normal_input; /* Textures from pool */ |