Added own shaders

This commit is contained in:
2026-04-13 00:51:32 +02:00
parent c964fcc984
commit 64b27a6b84
9 changed files with 219 additions and 10 deletions

4
shaders/README.md Normal file
View File

@@ -0,0 +1,4 @@
# Attributes
|Index|Description|
|---|---|
|0|Position|

7
shaders/basic.frag Normal file
View File

@@ -0,0 +1,7 @@
#version 330 core
layout(location = 0) out vec4 color;
void main() {
color = vec4(1.0f, 1.0f, 0.0f, 1.0f);
}

7
shaders/basic.vert Normal file
View File

@@ -0,0 +1,7 @@
#version 330 core
layout(location = 0) in vec3 position;
void main() {
gl_Position = vec4(position, 1.0f);
}