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>2018-04-20 16:15:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-20 16:26:06 +0300
commitbc11cb3daa60c28e41bc400df29d7f8085993888 (patch)
treed520208ed5cbedd63cba22749949544d97e8a2d1 /source/blender/gpu/shaders
parenta1cc75f22ded9669a3f41d5d335135aec26be8a8 (diff)
UI: Support for runtime geometry icons
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_smooth_color_uniform_alpha_vert.glsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_uniform_alpha_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_uniform_alpha_vert.glsl
new file mode 100644
index 00000000000..a8ad5575235
--- /dev/null
+++ b/source/blender/gpu/shaders/gpu_shader_2D_smooth_color_uniform_alpha_vert.glsl
@@ -0,0 +1,14 @@
+
+uniform mat4 ModelViewProjectionMatrix;
+uniform float alpha;
+
+in vec2 pos;
+in vec4 color;
+
+noperspective out vec4 finalColor;
+
+void main()
+{
+ gl_Position = ModelViewProjectionMatrix * vec4(pos, 0.0, 1.0);
+ finalColor = vec4(color[0], color[1], color[2], color[3] * alpha);
+}