Files
OpenRA/glsl/postprocess_flash.frag
2025-12-30 22:57:55 +00:00

16 lines
286 B
GLSL

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