LookingGlass/client/renderers/EGL/shader/basic.vert
Quantum 1b58f2592c [client] egl: make filters damage aware
This saves a lot of GPU power for partial updates. Running testufo with
lanczos downscaling and FSR upscaling consumed over 90 W, but with this
commit, consumed only 75 W.
2021-09-04 13:30:24 +10:00

16 lines
303 B
GLSL

#version 300 es
precision mediump float;
layout(location = 0) in vec2 vertex;
out vec2 fragCoord;
uniform vec2 desktopSize;
uniform mat3x2 transform;
void main()
{
vec2 pos = transform * vec3(vertex, 1.0);
gl_Position = vec4(pos.x, -pos.y, 0.0, 1.0);
fragCoord = vertex / desktopSize;
}