Created
September 29, 2017 12:41
-
-
Save kaosine/8600867229608bc76333682603a3027d to your computer and use it in GitHub Desktop.
Vertex shader with issues
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 core | |
in vec3 position; | |
out vec3 colour; | |
uniform vec3 pos; | |
void main(void){ | |
gl_Position = vec4(position + pos, 1.0) | |
colour = vec3((position.x + 0.5, 1.0, position.y + 0.5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment