Files
scummvm-cursorfix/engines/wintermute/base/gfx/opengl/shaders/wme_sprite.fragment
2026-02-02 04:50:13 +01:00

17 lines
245 B
Plaintext

in vec2 Texcoord;
in vec4 Color;
uniform sampler2D tex;
uniform float alphaRef;
uniform UBOOL alphaTest;
OUTPUT
void main() {
outColor = Color * texture(tex, Texcoord);
if (UBOOL_TEST(alphaTest) && outColor.a < alphaRef) {
discard;
}
}