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

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

flat in int vertFlag;

out vec4 FragColor;

void main()
{
	/* TODO: vertex size */

	if ((vertFlag & VERT_SELECTED) != 0) {
		FragColor = colorVertexSelect;
	}
	else if ((vertFlag & VERT_ACTIVE) != 0) {
		FragColor = colorEditMeshActive;
	}
	else {
		FragColor = colorVertex;
	}
}