aboutsummaryrefslogtreecommitdiff
path: root/client/menu/text_loading_anim.gdshader
blob: 145dab785b36a95a46ee1316e85949c30b703376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
shader_type canvas_item;

varying vec4 vertex_color;
void vertex() {
	vertex_color = COLOR;
}

void fragment() {
	vec4 tex = texture(TEXTURE, UV) * COLOR;
	float wave = sin(VERTEX.x*0.01-TIME*10.) * 0.5 + 0.5;
	wave = pow(wave, 3.);
	COLOR = tex * (1. - wave * 0.2);
}