Drew a triangle
This commit is contained in:
10
shaders/flat.frag
Normal file
10
shaders/flat.frag
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 330 core
|
||||
|
||||
// uniform vec3 color;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
void main() {
|
||||
//FragColor = vec4(color, 1.0);
|
||||
FragColor = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
12
shaders/flat.vert
Normal file
12
shaders/flat.vert
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 330 core
|
||||
|
||||
layout (location = 0) in vec3 pos;
|
||||
|
||||
// uniform mat4 MODEL;
|
||||
// uniform mat4 VIEW;
|
||||
// uniform mat4 PROJECTION;
|
||||
|
||||
void main() {
|
||||
//gl_Position = MODEL * VIEW * PROJECTION * vec4(pos, 1.0);
|
||||
gl_Position = vec4(pos, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user