shader/sprite_frag.glsl

Thu, 10 Jul 2025 22:13:39 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 10 Jul 2025 22:13:39 +0200
changeset 194
7985c3b64460
parent 137
f8e6e0ae61a8
permissions
-rw-r--r--

improve signatures of other text functions and make them linkable symbols

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