diff options
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/fragment.frag | 8 | ||||
-rw-r--r-- | shaders/vertex.vert | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/shaders/fragment.frag b/shaders/fragment.frag new file mode 100644 index 0000000..ea1ca7d --- /dev/null +++ b/shaders/fragment.frag @@ -0,0 +1,8 @@ +#version 330 core + +uniform vec3 triangle_color; +out vec4 out_color; + +void main() { + out_color = vec4(triangle_color, 1.0); +}
\ No newline at end of file diff --git a/shaders/vertex.vert b/shaders/vertex.vert new file mode 100644 index 0000000..d1cc433 --- /dev/null +++ b/shaders/vertex.vert @@ -0,0 +1,7 @@ +#version 330 core + +in vec2 position; + +void main() { + gl_Position = vec4(position, 0.0, 1.0); +}
\ No newline at end of file |