diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-03-23 12:17:36 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-03-23 16:03:39 +0300 |
commit | 0b116a84c9380166337722f5d5b3e255e19951b8 (patch) | |
tree | f4a84f34d625a20d27838d6308a1b103caafe597 /source/blender/draw/engines/workbench/workbench_private.h | |
parent | 6a5bd812b569d5fe1f09bd5610ce9d0c119f1a21 (diff) |
Fix T74923: Weight Painting Overlay Invisible for In Front Objects
For In Front Objects we need to use the in front depth buffer.
This patch will use the in front depth buffer and also makes sure that
it is filled with the center pixel depth.
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D7216
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_private.h')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_private.h b/source/blender/draw/engines/workbench/workbench_private.h index 1fa49c8f818..87b1c82ce94 100644 --- a/source/blender/draw/engines/workbench/workbench_private.h +++ b/source/blender/draw/engines/workbench/workbench_private.h @@ -88,6 +88,7 @@ typedef struct WORKBENCH_FramebufferList { struct GPUFrameBuffer *dof_blur2_fb; struct GPUFrameBuffer *antialiasing_fb; + struct GPUFrameBuffer *antialiasing_in_front_fb; struct GPUFrameBuffer *smaa_edge_fb; struct GPUFrameBuffer *smaa_weight_fb; } WORKBENCH_FramebufferList; @@ -97,6 +98,7 @@ typedef struct WORKBENCH_TextureList { struct GPUTexture *coc_halfres_tx; struct GPUTexture *history_buffer_tx; struct GPUTexture *depth_buffer_tx; + struct GPUTexture *depth_buffer_in_front_tx; struct GPUTexture *smaa_search_tx; struct GPUTexture *smaa_area_tx; struct GPUTexture *dummy_image_tx; |