Skip to content

Instantly share code, notes, and snippets.

@EddyLuten
Created May 20, 2014 03:42
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 EddyLuten/419748bfb11a3b625fd8 to your computer and use it in GitHub Desktop.
Save EddyLuten/419748bfb11a3b625fd8 to your computer and use it in GitHub Desktop.
Chapter 4, Snippet 29 - OpenGLBook.com
#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