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
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-05-07 18:12:04 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-05-07 18:12:04 +0300
commitb0b2a478539500b112a0f4b002a9d3d2123be0d0 (patch)
tree04024b74190476dda8663a2153d3fc93cdf6503f /source
parent8ab3697e2107b955e188f4dec9d264df98e23d97 (diff)
Armature: Transparent Bone: Fix envelope not being alpha blended.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl b/source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl
index 3e6ad48700e..b20656ff326 100644
--- a/source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl
+++ b/source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl
@@ -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. */
}