2021-05-18 19:01:18 +02:00
|
|
|
#version 330 core
|
2021-05-18 21:18:26 +02:00
|
|
|
|
2021-05-18 19:01:18 +02:00
|
|
|
layout (location = 0) in vec3 aPos;
|
|
|
|
layout (location = 1) in vec3 aColor;
|
|
|
|
|
2021-05-19 05:37:45 +02:00
|
|
|
out vec3 color;
|
|
|
|
|
|
|
|
uniform mat4 transform;
|
2021-05-18 19:01:18 +02:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2021-05-19 05:37:45 +02:00
|
|
|
gl_Position = transform * vec4(aPos, 1.0);
|
|
|
|
color = aColor;
|
2021-05-18 19:01:18 +02:00
|
|
|
}
|