LivingMachine/code/SFML-2.4.2/share/SFML/examples/shader/resources/blink.frag
2017-04-26 22:08:14 +02:00

9 lines
151 B
GLSL

uniform sampler2D texture;
uniform float blink_alpha;
void main()
{
vec4 pixel = gl_Color;
pixel.a = blink_alpha;
gl_FragColor = pixel;
}