This commit is contained in:
Ben
2019-01-11 23:42:53 +00:00
parent abd02b7f7a
commit 459f897ef7
4 changed files with 47 additions and 14 deletions

View File

@@ -1,8 +1,12 @@
#version 150 core
#version 130
in vec2 position;
in vec3 colour;
out vec3 Colour;
void main() {
Colour = colour;
gl_Position = vec4(position, 0.0, 1.0);
// Equivilent to vec4(position.x, position.y, 0.0, 1.0)
}