LookingGlass/client/renderers/EGL/shader/desktop.vert

14 lines
233 B
GLSL
Raw Normal View History

#version 300 es
layout(location = 0) in vec2 vertex;
out highp vec2 uv;
uniform highp vec2 uvScale;
uniform mat3x2 transform;
void main()
{
gl_Position = vec4(transform * vec3(vertex, 1.0), 0.0, 1.0);
uv = vertex * uvScale;
}