2022-06-21 23:16:14 -05:00
|
|
|
#version 330 core
|
2022-12-21 19:24:59 -06:00
|
|
|
layout (location = 0) in vec4 vertex;
|
2022-06-21 23:16:14 -05:00
|
|
|
out vec2 coords;
|
|
|
|
|
|
|
|
layout (std140) uniform Projection
|
|
|
|
{
|
|
|
|
mat4 projection;
|
|
|
|
};
|
|
|
|
|
2023-02-26 11:28:52 -06:00
|
|
|
layout (std140) uniform Resolution
|
|
|
|
{
|
|
|
|
vec2 resolution;
|
|
|
|
};
|
|
|
|
|
2022-06-21 23:16:14 -05:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = projection * vec4(vertex.xy, 0.0, 1.0);
|
2023-02-26 11:28:52 -06:00
|
|
|
coords = vertex.zw*resolution;
|
|
|
|
}
|