Skip to content

Instantly share code, notes, and snippets.

@EddyLuten
Last active August 29, 2015 14:00
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/11133716 to your computer and use it in GitHub Desktop.
Save EddyLuten/11133716 to your computer and use it in GitHub Desktop.
Chapter 2, Snippet 2 - OpenGLBook.com
const GLchar* VertexShader =
{
"#version 400\n"\
"layout(location=0) in vec4 in_Position;\n"\
"layout(location=1) in vec4 in_Color;\n"\
"out vec4 ex_Color;\n"\
"void main(void)\n"\
"{\n"\
" gl_Position = in_Position;\n"\
" ex_Color = in_Color;\n"\
"}\n"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment