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

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

uniform mat4 ModelViewProjectionMatrix;
uniform mat4 ModelMatrix;
#ifdef CLIP_PLANES
uniform vec4 ClipPlanes[1];
#endif

in vec3 pos;

void main()
{
	gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
#ifdef CLIP_PLANES
	vec4 worldPosition = (ModelMatrix * vec4(pos, 1.0));
	gl_ClipDistance[0] = dot(worldPosition, ClipPlanes[0]);
#endif
	/* TODO motion vectors */
}