aboutsummaryrefslogtreecommitdiff
path: root/data/shaders/swirlytron.vert
blob: a15b8a725b0a645405ea684432017ebea88798d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * swirlytron.vert
 *
 * Swirly stuff for rendering onto swirly things...
 *
 * (c) 2007-2008 Thomas White <taw27@cam.ac.uk>
 *
 *  thrust3d - a silly game
 *
 */

varying vec2 coords;

void main() {
	
	coords.x = gl_Vertex.x;
	coords.y = gl_Vertex.y;
	
	/* Coordinates */
	gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
	gl_Position = ftransform();
	
}