mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-21 11:39:51 -06:00
15 lines
253 B
GLSL
15 lines
253 B
GLSL
#version __CONTEXT__
|
|
|
|
in vec2 in_position;
|
|
|
|
uniform float height;
|
|
uniform ivec2 res;
|
|
|
|
uniform mat4 ortho;
|
|
|
|
void main() {
|
|
float y = float(res.y) - in_position.y * height * res.y;
|
|
|
|
gl_Position = ortho * vec4(in_position.x * res.x, y, 0.0, 1.0);
|
|
}
|