Last active
August 29, 2015 14:24
-
-
Save olevegard/934abf503e22d0ce01b4 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
#version 330 | |
// in_Position was bound to attribute index 0 and in_Color was bound to attribute index 1 | |
in vec4 in_Color; | |
in vec3 in_Position; | |
// We output the ex_Color variable to the next shader in the chain | |
out vec4 color; | |
void main(void) { | |
// Set the position to the one defined in our vertex array | |
gl_Position = vec4(in_Position, 1.0f); | |
// Pass the color on to the fragment shader | |
color = in_Color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment