diff Shaders/Shader.vsh @ 0:5ec52341f221

Initial commit
author Eric Wing <ewing@anscamobile.com>
date Fri, 29 Jul 2011 18:18:15 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Shaders/Shader.vsh	Fri Jul 29 18:18:15 2011 -0700
@@ -0,0 +1,22 @@
+//
+//  Shader.vsh
+//  MySampleProject
+//
+//  Created by Eric Wing on 7/29/11.
+//  Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+attribute vec4 position;
+attribute vec4 color;
+
+varying vec4 colorVarying;
+
+uniform float translate;
+
+void main()
+{
+    gl_Position = position;
+    gl_Position.y += sin(translate) / 2.0;
+
+    colorVarying = color;
+}