triangle and line

This commit is contained in:
2019-07-17 01:05:44 +02:00
commit db009a9ce5
10 changed files with 591 additions and 0 deletions

7
shaders/triangle.frag Normal file
View File

@@ -0,0 +1,7 @@
#version 450
layout(location = 0) out vec4 f_color;
void main() {
f_color = vec4(1.0, 0.0, 0.0, 1.0);
}

7
shaders/triangle.vert Normal file
View File

@@ -0,0 +1,7 @@
#version 450
layout(location = 0) in vec2 position;
void main() {
gl_Position = vec4(position, 0.0, 1.0);
}