diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2019-12-07 19:16:45 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2019-12-07 19:16:45 +0300 |
commit | 9c1134015c34ff19f3ff27c89321c019c67904b8 (patch) | |
tree | 0d1c5734282ad7f8d15e4d5261fba4a4edde7c15 /source/blender/draw/intern/draw_common.h | |
parent | 958d0d4236b1cfa600a7f36f6bdc51fdd0d98a97 (diff) |
UI: Custom Face Orientation Colors
Adds theme settings to allow change of front and back faces of the Face Orientation overlay
Differential Revision: https://developer.blender.org/D6262
Reviewed by Jeroen Bakker
Diffstat (limited to 'source/blender/draw/intern/draw_common.h')
-rw-r--r-- | source/blender/draw/intern/draw_common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h index bffb3ad5a1d..a486eb6ba77 100644 --- a/source/blender/draw/intern/draw_common.h +++ b/source/blender/draw/intern/draw_common.h @@ -34,7 +34,7 @@ struct ParticleSystem; struct ViewLayer; #define UBO_FIRST_COLOR colorWire -#define UBO_LAST_COLOR colorGridAxisZ +#define UBO_LAST_COLOR colorFaceFront /* Used as ubo but colors can be directly referenced as well */ /* Keep in sync with: common_globals_lib.glsl (globalsBlock) */ @@ -109,6 +109,9 @@ typedef struct GlobalsUboStorage { float colorGridAxisY[4]; float colorGridAxisZ[4]; + float colorFaceBack[4]; + float colorFaceFront[4]; + /* NOTE! Put all color before UBO_LAST_COLOR */ float screenVecs[2][4]; /* padded as vec4 */ float sizeViewport[2], sizeViewportInv[2]; /* packed as vec4 in glsl */ |