Welcome to mirror list, hosted at ThFree Co, Russian Federation.

armature_stick_frag.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d03cf4c036652cbff10ceb4f5a99b39e98211dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

noperspective in float colorFac;
flat in vec4 finalWireColor;
flat in vec4 finalInnerColor;

out vec4 fragColor;

void main()
{
	float fac = smoothstep(1.0, 0.2, colorFac);
	fragColor.rgb = mix(finalInnerColor.rgb, finalWireColor.rgb, fac);
	fragColor.a = 1.0;
}