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

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

uniform float alpha = 1.0;

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

layout(location = 0) out vec4 fragColor;
layout(location = 1) out vec4 lineOutput;

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