Mercurial > hg > forks > bilotrip-mj12
diff data/shaders/projector.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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/shaders/projector.vs Mon Aug 05 12:25:43 2013 +0300 @@ -0,0 +1,12 @@ + +uniform float time; +/* Vertex shader */ +void main(void) +{ + vec4 v = vec4(gl_Vertex); + v.z *= cos(time*0.1)*3.0; + v.x *= sin(time*0.1)*3.0; + v.y *= cos(time*0.1)*3.0; + gl_Position = gl_ModelViewProjectionMatrix * v; +} +