Files
RedScarfEngine/graphics/shaders/on_screen_text.vert
T
Piotr Krygier 493afb05e6 Initial commit
This is working repository now. I had to clean this up due to
my f_ups, that made this simple repo around 200MB large.

Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
2026-02-10 10:24:45 +01:00

14 lines
270 B
GLSL

#version 450
layout(location = 0) out vec2 uv;
vec2 positions[3] = vec2[](
vec2(-1.0, -1.0),
vec2(3.0, -1.0),
vec2(-1.0, 3.0)
);
void main() {
uv = (positions[gl_VertexIndex] + 1.0) * 0.5;
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
}