summaryrefslogtreecommitdiffstats
path: root/balls.vert
blob: fc00b1db59e857e3d995f9cae9fc894694766838 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 130

in  vec3 in_coords;
in  vec3 in_color;
out vec3 new_color;

void main(void) {
	new_color = in_color;
	mat3x3 rot_matrix = mat3x3(
		0.707, 0.641, -0.299,
		-0.707, 0.641, -0.299,
		-0.000, 0.423,  0.906);
	vec3 coords = rot_matrix * in_coords;
	gl_Position = vec4(coords, 1.0);
}