Armature: Transparent Bone: Fix envelope not being alpha blended.
authorClément Foucault <foucault.clem@gmail.com>
Mon, 7 May 2018 15:12:04 +0000 (17:12 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 7 May 2018 15:12:04 +0000 (17:12 +0200)
source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl

index 3e6ad48700ec70561d5932ad59676e46350b160f..b20656ff326cfefae6f1edbba4b7591d47d9e1b2 100644 (file)
@@ -12,5 +12,5 @@ void main()
        float n = normalize(normalView).z;
        float fac = clamp((n * (1.0 - s)) + s, 0.0, 1.0);
        fragColor.rgb = mix(finalStateColor, finalBoneColor, fac);
-       fragColor.a = 1.0;
+       fragColor.a = 0.6; /* Hardcoded transparency factor. */
 }