Files
OpenRA/glsl/postprocess_flash.frag
2023-10-23 22:42:33 +03:00

16 lines
284 B
GLSL

#version {VERSION}
#ifdef GL_ES
precision mediump float;
#endif
uniform float Blend;
uniform vec3 Color;
uniform sampler2D WorldTexture;
out vec4 fragColor;
void main()
{
vec4 c = texelFetch(WorldTexture, ivec2(gl_FragCoord.xy), 0);
fragColor = mix(c, vec4(Color, c.a), Blend);
}