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_envelope_solid_frag.glsl')
-rw-r--r--source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl12
1 files changed, 6 insertions, 6 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 78b29296601..424cc92b930 100644
--- a/source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl
+++ b/source/blender/draw/modes/shaders/armature_envelope_solid_frag.glsl
@@ -9,10 +9,10 @@ out vec4 fragColor;
void main()
{
- /* Smooth lighting factor. */
- const float s = 0.2; /* [0.0-0.5] range */
- 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 = alpha;
+ /* Smooth lighting factor. */
+ const float s = 0.2; /* [0.0-0.5] range */
+ 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 = alpha;
}