shader/sprite_frag.glsl

Sun, 25 Jan 2026 15:37:23 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 25 Jan 2026 15:37:23 +0100
changeset 296
f4f7886f10f0
parent 137
f8e6e0ae61a8
permissions
-rw-r--r--

recreate player sprite from scratch and remove all the interpolation noise

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