Skip to content

Instantly share code, notes, and snippets.

@kvisle
Created May 25, 2013 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvisle/5650937 to your computer and use it in GitHub Desktop.
Save kvisle/5650937 to your computer and use it in GitHub Desktop.
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