shader/sprite_frag.glsl

Mon, 18 Aug 2025 23:11:50 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 18 Aug 2025 23:11:50 +0200
changeset 266
a73674e99e62
parent 137
f8e6e0ae61a8
permissions
-rw-r--r--

convert behavior list to a behavior map

prepares the by-name lookup functions for behaviors

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