Archived
1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
skcblitz/shaders/text.vsh

13 lines
285 B
V Shell
Raw Permalink Normal View History

2025-09-02 14:43:36 +02:00
layout (location = 0) in vec2 coords;
out vec2 tex_coord;
uniform vec2 screen;
uniform vec2 offset;
uniform vec2 size;
void main() {
tex_coord = coords;
gl_Position = vec4((vec2(offset.x, screen.y - offset.y) + (coords * vec2(size.x, -size.y))) / screen * 2.0 - 1.0, 0.0, 1.0);
}