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:
authorClément Foucault <foucault.clem@gmail.com>2019-12-05 18:08:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-12-05 18:36:06 +0300
commitd40579c62b40e2ad7d30ae4196169c3328610d41 (patch)
tree1aeeb85fa19408d6836ecd8f03e1d91eefd39ad5 /source/blender/draw/engines/overlay/shaders/armature_wire_frag.glsl
parent95ca3f6536f1b756a0c87578f8d9d757ba9cd3a4 (diff)
Overlay Engine: Fix bone outline antialiasing
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/armature_wire_frag.glsl')
-rw-r--r--source/blender/draw/engines/overlay/shaders/armature_wire_frag.glsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/armature_wire_frag.glsl b/source/blender/draw/engines/overlay/shaders/armature_wire_frag.glsl
new file mode 100644
index 00000000000..9413ac0f365
--- /dev/null
+++ b/source/blender/draw/engines/overlay/shaders/armature_wire_frag.glsl
@@ -0,0 +1,13 @@
+
+flat in vec4 finalColor;
+flat in vec2 edgeStart;
+noperspective in vec2 edgePos;
+
+layout(location = 0) out vec4 fragColor;
+layout(location = 1) out vec4 lineOutput;
+
+void main()
+{
+ lineOutput = pack_line_data(gl_FragCoord.xy, edgeStart, edgePos);
+ fragColor = finalColor;
+}