@ -2,10 +2,9 @@
layout(location = 0) out vec4 color;
in vec3 p_position;
in vec4 p_color;
in vec4 v_color;
void main()
{
color = p_color;
color = v_color;
}
@ -3,12 +3,10 @@
layout(location = 0) in vec3 a_position;
layout(location = 1) in vec4 a_color;
out vec3 p_position;
out vec4 p_color;
out vec4 v_color;
p_position = a_position;
p_color = a_color;
v_color = a_color;
gl_Position = vec4(a_position, 1.0f);