aboutsummaryrefslogtreecommitdiff
path: root/data/shaders/swirlytron.vert
blob: bd69d974107b672694ff755eff04c8f6ebe0cbf7 (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
25
26
/*
 * 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;
varying vec2 incoords;
uniform vec2 lander;

void main() {
	
	coords = gl_Vertex.xy;
	incoords = gl_Vertex.xy + lander;
	
	/* Coordinates */
	gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
	gl_Position = ftransform();
	
}