12 lines
230 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos; // la variable aPos a l'attribut de position 0
layout (location = 1) in vec3 aColor;
out vec3 Color;
void main()
{
gl_Position = vec4(aPos, 1.0);
Color = aColor;
}