2022-06-21 23:16:14 -05:00
|
|
|
#version 330 core
|
2023-05-31 14:52:30 -05:00
|
|
|
layout (location = 0) in vec2 vertex;
|
|
|
|
layout (location = 1) in vec2 uv;
|
|
|
|
layout (location = 2) in vec4 vColor;
|
2023-05-31 17:33:04 -05:00
|
|
|
|
2022-06-21 23:16:14 -05:00
|
|
|
out vec2 texcoords;
|
2023-05-31 17:33:04 -05:00
|
|
|
out vec4 fcolor;
|
2022-06-21 23:16:14 -05:00
|
|
|
|
2023-05-31 12:09:02 -05:00
|
|
|
uniform mat4 proj;
|
2022-06-21 23:16:14 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-05-31 17:33:04 -05:00
|
|
|
fcolor = vColor;
|
|
|
|
texcoords = uv;
|
|
|
|
gl_Position = proj * vec4(vertex, 0.0, 1.0);
|
2023-05-04 17:07:00 -05:00
|
|
|
}
|