vectors are now passed to the gpu instead of being embedded to the shader

This commit is contained in:
Luna 2025-04-24 04:13:58 +02:00
parent 9029dd50ae
commit 619f4a2641
5 changed files with 91 additions and 25 deletions

View file

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