provide a better method of embedding shaders within the source code

This commit is contained in:
2025-06-05 00:14:44 +02:00
parent 5ae974d84f
commit 5f4389d9f9
10 changed files with 160 additions and 82 deletions

6
res/default.frag.glsl Normal file
View File

@@ -0,0 +1,6 @@
#version 330 core
out vec4 colour;
void main() {
colour = vec4(1.0F, 0.5F, 0.0F, 1.0F);
}

6
res/default.vert.glsl Normal file
View File

@@ -0,0 +1,6 @@
#version 330 core
layout(location = 0) in vec2 pos;
void main() {
gl_Position = vec4(pos.x, pos.y, 0.0F, 1.0F);
}