feat: basic triangle rendering

This commit is contained in:
Chance 2025-04-16 01:24:10 +00:00 committed by BitSyndicate
parent f215c10d0e
commit 43f8f46021
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
11 changed files with 1828 additions and 67 deletions

8
shaders/shader.frag Normal file
View file

@ -0,0 +1,8 @@
#version 450
layout(location = 0) in vec3 color;
layout(location = 0) out vec4 out_color;
void main() {
out_color = vec4(color, 1.0);
}

10
shaders/shader.vert Normal file
View file

@ -0,0 +1,10 @@
#version 450
layout(location = 0) in vec3 position;
layout(location = 1) in vec3 color;
layout(location = 0) out vec3 out_color;
void main() {
gl_Position = vec4(position, 1.0);
out_color = color;
}