mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
22 lines
337 B
Plaintext
22 lines
337 B
Plaintext
in vec2 Texcoord;
|
|
in vec4 Color;
|
|
|
|
uniform sampler2D tex;
|
|
uniform bool textured;
|
|
uniform float alphaRef;
|
|
uniform float meshAlpha;
|
|
|
|
OUTPUT
|
|
|
|
void main()
|
|
{
|
|
outColor = Color;
|
|
if (textured) {
|
|
vec4 texColor = texture(tex, Texcoord);
|
|
outColor.rgba *= texColor.rgba;
|
|
outColor.a *= meshAlpha;
|
|
if (outColor.a < alphaRef)
|
|
discard;
|
|
}
|
|
}
|