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

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

/* Solid Wirefram implementation
 * Mike Erwin, Clément Foucault */

/* This shader follows the principles of
 * http://developer.download.nvidia.com/SDK/10/direct3d/Source/SolidWireframe/Doc/SolidWireframe.pdf */

uniform mat4 ModelViewMatrix;
uniform mat4 ModelViewProjectionMatrix;

in vec3 pos;
in ivec4 data;

out vec4 vPos;
out vec4 pPos;
out ivec4 vData;

void main()
{
	vPos = ModelViewMatrix * vec4(pos, 1.0);
	pPos = ModelViewProjectionMatrix * vec4(pos, 1.0);
	vData = data;
}