hUI/hui-glium/shaders/vertex.150.vert

18 lines
329 B
GLSL
Raw Normal View History

2024-03-25 09:37:32 -05:00
#version 150 core
2024-02-17 14:43:46 -06:00
precision highp float;
uniform vec2 resolution;
in vec2 uv;
in vec4 color;
in vec2 position;
out vec4 vtx_color;
out vec2 vtx_uv;
void main() {
vtx_color = color;
vtx_uv = uv;
vec2 pos2d = (vec2(2., -2.) * (position / resolution)) + vec2(-1, 1);
gl_Position = vec4(pos2d, 0., 1.);
}