[Bf-blender-cvs] [b0b2a478539] blender2.8: Armature: Transparent Bone: Fix envelope not being alpha blended.

Clément Foucault noreply at git.blender.org
Mon May 7 17:12:27 CEST 2018


Commit: b0b2a478539500b112a0f4b002a9d3d2123be0d0
Author: Clément Foucault
Date:   Mon May 7 17:12:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb0b2a478539500b112a0f4b002a9d3d2123be0d0

Armature: Transparent Bone: Fix envelope not being alpha blended.

===================================================================

M	source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl

===================================================================

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. */
 }



More information about the Bf-blender-cvs mailing list