From 448aec982cb76a8df7e2eaae146123e6e1c3f303 Mon Sep 17 00:00:00 2001 From: Luca Conte Date: Thu, 6 Mar 2025 01:29:51 +0100 Subject: [PATCH] add fragment shader --- src/shaders/vertex.glsl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/shaders/vertex.glsl diff --git a/src/shaders/vertex.glsl b/src/shaders/vertex.glsl new file mode 100644 index 0000000..efc881d --- /dev/null +++ b/src/shaders/vertex.glsl @@ -0,0 +1,9 @@ +#version 330 core +layout (location = 0) in vec2 aPosition; + +out vec3 vertexColor; + +void main() { + vertexColor = vec3(1.0, 0.0, 0.0); + gl_Position = vec4(aPosition, 0.0, 1.0); +} \ No newline at end of file