shader/sprite_vtx.glsl@d766b4f033d7
shader/sprite_vtx.glsl
Tue, 05 Aug 2025 16:45:14 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Tue, 05 Aug 2025 16:45:14 +0200
- changeset 250
- d766b4f033d7
- parent 137
-
f8e6e0ae61a8
- permissions
- -rw-r--r--
remove "bounds" creation argument for rectangles
we will keep the asc_rectangle_set_bounds() function, though
layout(location = 0) in vec2 in_pos;
layout(location = 1) in vec2 in_uv;
out vec2 uvcoord;
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
void main(void) {
vec4 pos = projection*view*model*vec4(in_pos.xy, 0.0, 1.0);
gl_Position = pos;
uvcoord = in_uv;
}