Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2019-12-07 19:16:45 +0300
committerHarley Acheson <harley.acheson@gmail.com>2019-12-07 19:16:45 +0300
commit9c1134015c34ff19f3ff27c89321c019c67904b8 (patch)
tree0d1c5734282ad7f8d15e4d5261fba4a4edde7c15 /source/blender/draw/engines/overlay/shaders/facing_frag.glsl
parent958d0d4236b1cfa600a7f36f6bdc51fdd0d98a97 (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/engines/overlay/shaders/facing_frag.glsl')
-rw-r--r--source/blender/draw/engines/overlay/shaders/facing_frag.glsl5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/facing_frag.glsl b/source/blender/draw/engines/overlay/shaders/facing_frag.glsl
index 1ed35b4a421..ca7b4eeaf47 100644
--- a/source/blender/draw/engines/overlay/shaders/facing_frag.glsl
+++ b/source/blender/draw/engines/overlay/shaders/facing_frag.glsl
@@ -1,9 +1,6 @@
-uniform vec3 color_towards = vec3(0.0, 0.0, 1.0);
-uniform vec3 color_outwards = vec3(1.0, 0.0, 0.0);
-
out vec4 fragColor;
void main()
{
- fragColor = vec4(gl_FrontFacing ? color_towards : color_outwards, 0.7);
+ fragColor = gl_FrontFacing ? colorFaceFront : colorFaceBack;
}