shader/sprite_frag.glsl

Sat, 19 Apr 2025 19:30:46 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 19 Apr 2025 19:30:46 +0200
changeset 87
874a02a683c5
parent 50
d8d2e4817db1
child 88
6234b7ea48f3
permissions
-rw-r--r--

skip sprite rendering when there are no sprites in the scene

#version 400 core

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

uniform sampler2DRect tex;

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

mercurial