scummvm/engines/grim/shaders/emi_actor.fragment
2021-12-04 22:21:12 +01:00

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;
}
}