feat: add colors to vao and shaders

This commit is contained in:
2025-09-11 22:46:14 +02:00
committed by Your Name
parent 0f13f037ce
commit ba0b49c3b6
3 changed files with 32 additions and 16 deletions

View File

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