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:
authorLuca Rood <dev@lucarood.com>2017-05-05 15:25:43 +0300
committerLuca Rood <dev@lucarood.com>2017-05-05 16:53:37 +0300
commit872d8993ddda28a4340730a5842af18ccf55fd2b (patch)
tree1fe03d2615d0f49843121363d2249edb8ea21728 /source/blender/draw/modes/shaders/paint_wire_vert.glsl
parent14bf4ed19407e98575ca7646e942f8230a0b2e8d (diff)
Clean up weight/vertex painting code
Now passing selection state instead of colors for the wire/face mask overlay thing. Also added masking indication on the faces in vertex paint.
Diffstat (limited to 'source/blender/draw/modes/shaders/paint_wire_vert.glsl')
-rw-r--r--source/blender/draw/modes/shaders/paint_wire_vert.glsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/paint_wire_vert.glsl b/source/blender/draw/modes/shaders/paint_wire_vert.glsl
new file mode 100644
index 00000000000..1f404d33c88
--- /dev/null
+++ b/source/blender/draw/modes/shaders/paint_wire_vert.glsl
@@ -0,0 +1,13 @@
+
+uniform mat4 ModelViewProjectionMatrix;
+
+in vec3 pos;
+in int select;
+
+flat out int finalSelect;
+
+void main()
+{
+ gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
+ finalSelect = select;
+}