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

armature_wire_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: 55278515f7417b926b3d5ab460389a467b496286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

uniform float alpha = 1.0;

flat in vec4 finalColor;
flat in vec2 edgeStart;
noperspective in vec2 edgePos;

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

void main()
{
  lineOutput = pack_line_data(gl_FragCoord.xy, edgeStart, edgePos);
  fragColor = vec4(finalColor.rgb, finalColor.a * alpha);
}