diff options
author | Pablo Dobarro <pablodp606> | 2020-09-18 20:20:22 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-09-18 20:24:58 +0300 |
commit | ea6cd1c8f05b27a81e835251e779f047a3488203 (patch) | |
tree | f474690da2ddba60ca0feb2664141f65cde38a5d /source/blender/draw/engines/overlay/overlay_private.h | |
parent | 5855f317a7070d69dbb94761c5a2c2f53b058a6e (diff) |
Overlay: Fade Inactive Geometry
This implements a new overlay that blends the bakground color over the
objects that are not in the same mode as the active object, making
them fade with the background.
This is especially needed for sculpt mode as there is no other overlay
or indication in the viewport to display which object is active.
This is intended to be used with D7510 in order to have a faster
workflow when sculpting models with multiple objects.
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D8679
Diffstat (limited to 'source/blender/draw/engines/overlay/overlay_private.h')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_private.h b/source/blender/draw/engines/overlay/overlay_private.h index b84b66ca83d..2cf2ca34801 100644 --- a/source/blender/draw/engines/overlay/overlay_private.h +++ b/source/blender/draw/engines/overlay/overlay_private.h @@ -100,6 +100,7 @@ typedef struct OVERLAY_PassList { DRWPass *extra_grid_ps; DRWPass *gpencil_canvas_ps; DRWPass *facing_ps[2]; + DRWPass *fade_ps[2]; DRWPass *grid_ps; DRWPass *image_background_ps; DRWPass *image_empties_ps; @@ -268,6 +269,7 @@ typedef struct OVERLAY_PrivateData { DRWShadingGroup *edit_uv_stretching_grp; DRWShadingGroup *extra_grid_grp; DRWShadingGroup *facing_grp[2]; + DRWShadingGroup *fade_grp[2]; DRWShadingGroup *motion_path_lines_grp; DRWShadingGroup *motion_path_points_grp; DRWShadingGroup *outlines_grp; @@ -566,6 +568,12 @@ void OVERLAY_facing_cache_populate(OVERLAY_Data *vedata, Object *ob); void OVERLAY_facing_draw(OVERLAY_Data *vedata); void OVERLAY_facing_infront_draw(OVERLAY_Data *vedata); +void OVERLAY_fade_init(OVERLAY_Data *vedata); +void OVERLAY_fade_cache_init(OVERLAY_Data *vedata); +void OVERLAY_fade_cache_populate(OVERLAY_Data *vedata, Object *ob); +void OVERLAY_fade_draw(OVERLAY_Data *vedata); +void OVERLAY_fade_infront_draw(OVERLAY_Data *vedata); + void OVERLAY_grid_init(OVERLAY_Data *vedata); void OVERLAY_grid_cache_init(OVERLAY_Data *vedata); void OVERLAY_grid_draw(OVERLAY_Data *vedata); |