From 6bea407754e42bd73ad25b3484567226e292eacc Mon Sep 17 00:00:00 2001 From: iurii plugatarov Date: Wed, 7 Aug 2024 20:28:51 +0300 Subject: init --- src/shaders/triangle.frag.glsl | 6 ++++++ src/shaders/triangle.vert.glsl | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 src/shaders/triangle.frag.glsl create mode 100644 src/shaders/triangle.vert.glsl (limited to 'src/shaders') diff --git a/src/shaders/triangle.frag.glsl b/src/shaders/triangle.frag.glsl new file mode 100644 index 0000000..664c399 --- /dev/null +++ b/src/shaders/triangle.frag.glsl @@ -0,0 +1,6 @@ +#version 330 core +out vec4 FragColor; +void main() +{ + FragColor = vec4(1.0, 0.0, 0.0, 1.0); +} diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl new file mode 100644 index 0000000..dbef13e --- /dev/null +++ b/src/shaders/triangle.vert.glsl @@ -0,0 +1,6 @@ +#version 330 core +layout (location = 0) in vec2 aPos; +void main() +{ + gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0); +} -- cgit 1.4.1-2-gfad0