wayvnc/shaders/dmabuf-vertex.glsl

13 lines
196 B
Plaintext
Raw Normal View History

2020-03-05 18:46:27 +00:00
uniform mat2 u_proj;
2019-10-27 22:22:43 +00:00
attribute vec2 pos;
attribute vec2 texture;
varying vec2 v_texture;
void main()
{
v_texture = vec2(texture.s, 1.0 - texture.t);
2020-03-05 18:46:27 +00:00
gl_Position = vec4(u_proj * pos, 0, 1);
2019-10-27 22:22:43 +00:00
}