Skip to content

Instantly share code, notes, and snippets.

@madebyjeffrey
Created September 30, 2011 07:53
Show Gist options
  • Save madebyjeffrey/1253021 to your computer and use it in GitHub Desktop.
Save madebyjeffrey/1253021 to your computer and use it in GitHub Desktop.
layout(location = 0) in vec4 position;
uniform mat4 viewportTranslation;
uniform mat4 projectionMatrix;
void main()
{
vec4 p2;
p2 = viewportTranslation * position;
gl_Position = projectionMatrix * p2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment