Mercurial > hg > forks > bilotrip-mj12
view data/shaders/eye.vs @ 0:785057719d9b
Import.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Aug 2013 12:25:43 +0300 |
parents | |
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; }