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