2022-06-21 23:16:14 -05:00
|
|
|
#version 330 core
|
2023-05-06 21:16:10 -05:00
|
|
|
layout (location = 0) in vec2 vertex;
|
|
|
|
layout (location = 1) in vec2 rect;
|
|
|
|
layout (location = 2) in vec3 vColor;
|
|
|
|
|
2022-06-21 23:16:14 -05:00
|
|
|
out vec2 TexCoords;
|
2023-05-06 21:16:10 -05:00
|
|
|
out vec3 fColor;
|
2022-06-21 23:16:14 -05:00
|
|
|
|
2023-05-04 17:07:00 -05:00
|
|
|
uniform mat4 projection;
|
2022-06-21 23:16:14 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-05-06 21:16:10 -05:00
|
|
|
gl_Position = projection * vec4(vertex, 0.0, 1.0);
|
|
|
|
TexCoords = rect;
|
|
|
|
|
|
|
|
fColor = vColor;
|
2023-02-03 22:18:19 -06:00
|
|
|
}
|