File: main.vert

package info (click to toggle)
caveexpress 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,288 kB
  • sloc: cpp: 63,815; ansic: 1,135; sh: 501; xml: 186; python: 74; makefile: 60; javascript: 22
file content (15 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// attributes from the VAOs
in vec2 a_pos;
in vec2 a_texcoord;
in vec4 a_color;

uniform mat4 u_projection;

out vec2 v_texcoord;
out vec4 v_color;

void main(void) {
	v_color = a_color;
	v_texcoord = a_texcoord;
	gl_Position = u_projection * vec4(a_pos.x, a_pos.y, 0.0, 1.0);
}