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

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

flat in int isSelected;
#ifdef VERTEX_FACING
flat in float facing;
#endif

out vec4 FragColor;

void main()
{
	if (isSelected != 0)
		FragColor = colorFaceDot;
	else
		FragColor = colorWireEdit;

#ifdef VERTEX_FACING
	FragColor.a *= 1.0 - abs(facing) * 0.4;
#endif
}