Created
May 20, 2014 03:42
-
-
Save EddyLuten/419748bfb11a3b625fd8 to your computer and use it in GitHub Desktop.
Chapter 4, Snippet 29 - OpenGLBook.com
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
#version 400 | |
layout(location=0) in vec4 in_Position; | |
layout(location=1) in vec4 in_Color; | |
out vec4 ex_Color; | |
uniform mat4 ModelMatrix; | |
uniform mat4 ViewMatrix; | |
uniform mat4 ProjectionMatrix; | |
void main(void) | |
{ | |
gl_Position = (ProjectionMatrix * ViewMatrix * ModelMatrix) * in_Position; | |
ex_Color = in_Color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment