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

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

in vec2 pos;

out vec3 varposition;
out vec3 varnormal;
out vec3 viewPosition;

/* necessary for compilation*/
out vec3 worldPosition;
out vec3 worldNormal;

void main()
{
	gl_Position = vec4(pos, 1.0, 1.0);
	varposition = viewPosition = vec3(pos, -1.0);
	varnormal = normalize(-varposition);
}