kubi/kubi-ui/shaders/vertex.vert

10 lines
171 B
GLSL
Raw Normal View History

2023-11-22 04:56:46 -06:00
#version 300 es
precision highp float;
in vec2 position;
2023-11-22 07:23:48 -06:00
uniform vec2 resolution;
2023-11-22 04:56:46 -06:00
void main() {
2023-11-22 07:23:48 -06:00
gl_Position = vec4(vec2(1., -1.) * (position / resolution), 0., 1.);
2023-11-22 04:56:46 -06:00
}