2021-05-13 20:40:21 +02:00
|
|
|
#version 330 core
|
2021-05-14 20:46:17 +02:00
|
|
|
layout (location = 0) in vec3 aPos;
|
2021-05-14 18:47:05 +02:00
|
|
|
layout (location = 1) in vec3 aColor;
|
2021-05-14 20:46:17 +02:00
|
|
|
layout (location = 2) in vec2 aTexCoord;
|
2021-05-14 15:34:08 +02:00
|
|
|
|
2021-05-14 20:46:17 +02:00
|
|
|
out vec3 ourColor;
|
|
|
|
out vec2 TexCoord;
|
2021-05-17 05:39:23 +02:00
|
|
|
out vec4 position;
|
2021-05-13 20:40:21 +02:00
|
|
|
|
2021-05-17 14:53:16 +02:00
|
|
|
uniform mat4 transform;
|
|
|
|
|
2021-05-13 20:40:21 +02:00
|
|
|
void main()
|
|
|
|
{
|
2021-05-17 14:53:16 +02:00
|
|
|
gl_Position = transform * vec4(aPos, 1.0);
|
2021-05-14 20:46:17 +02:00
|
|
|
ourColor = aColor;
|
|
|
|
TexCoord = aTexCoord;
|
2021-05-17 05:39:23 +02:00
|
|
|
position = gl_Position;
|
2021-05-13 20:40:21 +02:00
|
|
|
}
|