Created
September 30, 2011 07:53
-
-
Save madebyjeffrey/1253021 to your computer and use it in GitHub Desktop.
This file contains 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
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