Created
May 25, 2013 22:08
-
-
Save kvisle/5650937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uniform mat4 u_pMatrix; | |
uniform mat4 u_vMatrix; | |
attribute vec3 a_position; | |
attribute vec2 a_texcoord; | |
varying vec2 vTextureCoord; | |
void main() | |
{ | |
vec4 pos = vec4(a_position, 1.0); | |
vTextureCoord = a_texcoord; | |
gl_Position = u_pMatrix * u_vMatrix * pos; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment