view data/shaders/eye.vs @ 45:d85542c96791

Clean up the build some more, move platform specifics again.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Aug 2013 00:23:45 +0300
parents 785057719d9b
children
line wrap: on
line source

/* Vertex shader */
uniform float waveTime;
uniform float waveWidth;
uniform float waveHeight;

varying float zpos;

void main(void)
{
	vec4 v = vec4(gl_Vertex);
 
	v.z = cos(waveTime*100.0)/(waveWidth * v.x + waveTime) * (waveWidth * v.y + waveTime) * waveHeight;	
	zpos = v.z;

	gl_Position = gl_ModelViewProjectionMatrix * v;
}