18 lines
356 B
Plaintext
Raw Normal View History

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