Skip to content

Instantly share code, notes, and snippets.

@natxopedreira
Created January 30, 2015 12:58
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 natxopedreira/4ddfcaf8482a977e87ea to your computer and use it in GitHub Desktop.
Save natxopedreira/4ddfcaf8482a977e87ea to your computer and use it in GitHub Desktop.
#version 150
uniform mat4 projectionMatrix;
uniform mat4 modelViewMatrix;
uniform mat4 modelViewProjectionMatrix;
in vec4 position;
in vec2 texcoord;
out vec2 v_TexCoordinate;
void main(){
//get our current vertex position so we can modify it
v_TexCoordinate = texcoord;
gl_Position = modelViewProjectionMatrix * position;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment