shader/sprite_vtx.glsl

Mon, 16 Jun 2025 20:58:51 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 16 Jun 2025 20:58:51 +0200
changeset 156
bd15eeaa88c0
parent 137
f8e6e0ae61a8
permissions
-rw-r--r--

change order of members in asc_behavior_create_args so that you can just specify the func without designators

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;
}

mercurial