/************************************************************* GLSL Demo - Wave vertex shader (c) 2005 Antoine Bouthors, EVASION *************************************************************/ uniform float Time; void main() { vec4 pos = gl_Vertex; pos.y = sin( pos.x*2. + Time )/2.; gl_Position = gl_ModelViewProjectionMatrix * pos; }