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

paint_face_vert.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 437eeb281186d7145617b56695d9ec69c704cc8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

uniform mat4 ModelViewProjectionMatrix;

in vec3 pos;
in vec4 nor; /* select flag on the 4th component */

void main()
{
	gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
	/* Don't draw faces that are selected. */
	if (nor.w > 0.0) {
		gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
	}
}