Load shaders from file

This commit is contained in:
2024-09-21 18:01:11 +01:00
parent 0b7da3fad7
commit a711521f17
3 changed files with 40 additions and 19 deletions

7
shaders/frag.glsl Normal file
View File

@@ -0,0 +1,7 @@
#version 460 core
out vec4 color;
void main() {
color = vec4(0.93f, 0.42f, 0.35f, 1.0f);
};

7
shaders/vert.glsl Normal file
View File

@@ -0,0 +1,7 @@
#version 460 core
in vec4 position;
void main() {
gl_Position = vec4(position.x, position.y, position.z, position.w);
};