2020-02-17 02:44:21 +00:00
|
|
|
#version 330 core
|
|
|
|
in vec3 aPosition;
|
2020-02-17 07:26:12 +00:00
|
|
|
in vec2 aTexCoord;
|
|
|
|
in vec4 aColor;
|
2020-02-20 21:08:34 +00:00
|
|
|
uniform mat4 transform;
|
2020-02-17 07:26:12 +00:00
|
|
|
|
|
|
|
out vec2 texCoord;
|
|
|
|
out vec4 color;
|
2020-02-17 02:44:21 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2020-02-20 21:08:34 +00:00
|
|
|
texCoord = aTexCoord;
|
|
|
|
color = aColor;
|
2020-02-23 19:53:47 +00:00
|
|
|
|
2020-02-20 21:08:34 +00:00
|
|
|
gl_Position = vec4(aPosition, 1.0f) * transform;
|
2020-02-17 02:44:21 +00:00
|
|
|
}
|