add fragment shader

This commit is contained in:
Luca Conte 2025-03-06 01:29:51 +01:00
parent bbec4f6a26
commit 448aec982c
1 changed files with 9 additions and 0 deletions

9
src/shaders/vertex.glsl Normal file
View File

@ -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);
}