Last active
August 29, 2015 14:00
-
-
Save EddyLuten/11133716 to your computer and use it in GitHub Desktop.
Chapter 2, Snippet 2 - 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
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