comparison Shaders/Shader.vsh @ 0:5ec52341f221

Initial commit
author Eric Wing <ewing@anscamobile.com>
date Fri, 29 Jul 2011 18:18:15 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5ec52341f221
1 //
2 // Shader.vsh
3 // MySampleProject
4 //
5 // Created by Eric Wing on 7/29/11.
6 // Copyright 2011 __MyCompanyName__. All rights reserved.
7 //
8
9 attribute vec4 position;
10 attribute vec4 color;
11
12 varying vec4 colorVarying;
13
14 uniform float translate;
15
16 void main()
17 {
18 gl_Position = position;
19 gl_Position.y += sin(translate) / 2.0;
20
21 colorVarying = color;
22 }