2019-03-28 03:59:54 +00:00
|
|
|
#version 300 es
|
2021-08-11 10:41:56 +00:00
|
|
|
precision mediump float;
|
2019-03-28 03:59:54 +00:00
|
|
|
|
2021-08-03 00:45:47 +00:00
|
|
|
layout(location = 0) in vec2 vertex;
|
2021-08-11 10:41:56 +00:00
|
|
|
out vec2 uv;
|
2019-03-28 03:59:54 +00:00
|
|
|
|
2021-08-11 10:41:56 +00:00
|
|
|
uniform vec2 desktopSize;
|
2021-08-03 00:45:47 +00:00
|
|
|
uniform mat3x2 transform;
|
|
|
|
|
2019-03-28 03:59:54 +00:00
|
|
|
void main()
|
|
|
|
{
|
2021-08-03 00:45:47 +00:00
|
|
|
gl_Position = vec4(transform * vec3(vertex, 1.0), 0.0, 1.0);
|
2021-08-10 03:08:54 +00:00
|
|
|
uv = vertex / desktopSize;
|
2019-03-28 03:59:54 +00:00
|
|
|
}
|