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: a4c911c56e33e1504d2259288f2323d68a470904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

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

out vec4 FragColor;

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

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