14 lines
218 B
Plaintext
Raw Normal View History

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