shooter/SFML/examples/shader/resources/blink.frag

10 lines
151 B
GLSL
Raw Normal View History

2021-10-09 13:41:12 +03:00
uniform sampler2D texture;
uniform float blink_alpha;
void main()
{
vec4 pixel = gl_Color;
pixel.a = blink_alpha;
gl_FragColor = pixel;
}