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:
authorCampbell Barton <ideasman42@gmail.com>2019-01-23 15:30:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-23 15:37:25 +0300
commit48eed058b170e3def90fbc420933638d3986ca2c (patch)
tree5e2ddb5fae907ae921b26f027b77437c1cd2ccbe /source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl
parent44e9fe024bba014aa49b3a106fe89aa0b6e610cd (diff)
3D View: draw clipping region
Only for workbench solid/wire modes.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl
index 118a661863d..f6f0f5b83ec 100644
--- a/source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_uniform_color_frag.glsl
@@ -18,4 +18,8 @@ void main()
#else
fragColor = color;
#endif
+
+#if defined(USE_BACKGROUND)
+ gl_FragDepth = 1.0;
+#endif
}