shader/sprite_frag.glsl

Tue, 12 Aug 2025 21:04:59 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 12 Aug 2025 21:04:59 +0200
changeset 262
b47de42f4598
parent 137
f8e6e0ae61a8
permissions
-rw-r--r--

update viewports of cameras before executing behaviors, so that the new viewport information is available in the behavior functions

layout(location = 0) out vec4 diffuse;
in vec2 uvcoord;

#ifdef USE_RECT
uniform sampler2DRect tex;
#else
uniform sampler2D tex;
#endif

void main(void) {
    diffuse = texture(tex, uvcoord);
}

mercurial