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:
Diffstat (limited to 'source/blender/draw/modes/shaders/armature_shape_solid_frag.glsl')
-rw-r--r--source/blender/draw/modes/shaders/armature_shape_solid_frag.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/modes/shaders/armature_shape_solid_frag.glsl b/source/blender/draw/modes/shaders/armature_shape_solid_frag.glsl
index 89f4d97f29b..45748bf5644 100644
--- a/source/blender/draw/modes/shaders/armature_shape_solid_frag.glsl
+++ b/source/blender/draw/modes/shaders/armature_shape_solid_frag.glsl
@@ -1,9 +1,11 @@
+uniform float alpha = 0.6;
+
in vec4 finalColor;
out vec4 fragColor;
void main()
{
- fragColor = vec4(finalColor.rgb, 0.6); /* Hardcoded transparency factor. */
+ fragColor = vec4(finalColor.rgb, alpha);
}