triangle has now colors

This commit is contained in:
2026-04-13 01:32:31 +02:00
parent 64b27a6b84
commit 0c74cf691f
7 changed files with 46 additions and 18 deletions

View File

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