Mercurial > xcodescriptingbridge
annotate Shaders/Shader.vsh @ 8:78830332a3be tip
Merged
author | Eric Wing <ewing@anscamobile.com> |
---|---|
date | Thu, 11 Aug 2011 15:46:13 -0700 |
parents | 5ec52341f221 |
children |
rev | line source |
---|---|
0 | 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 } |