scummvm/engines/grim/shaders/grim_dim.fragment
2020-10-07 00:37:20 +02:00

15 lines
178 B
Plaintext

in vec2 Texcoord;
OUTPUT
uniform sampler2D tex;
void main()
{
vec4 c = texture(tex, Texcoord);
float val = (c.r + c.g + c.b) / 10.0;
outColor = vec4(val, val, val, 1);
}