aboutsummaryrefslogtreecommitdiff
path: root/client/gui/menus/transition/text_loading_anim.gdshader
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-04 23:47:24 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-05 23:07:07 +0200
commit81deaf81c800900e30046cb927be1c9d91ae61b8 (patch)
tree20ce9898465e8d4c49eeff12a9ea55572517ea7b /client/gui/menus/transition/text_loading_anim.gdshader
parentfd80142282fcef628466a18e3ea62f0d1372d807 (diff)
downloadhurrycurry-81deaf81c800900e30046cb927be1c9d91ae61b8.tar
hurrycurry-81deaf81c800900e30046cb927be1c9d91ae61b8.tar.bz2
hurrycurry-81deaf81c800900e30046cb927be1c9d91ae61b8.tar.zst
reorganize client gui files
Diffstat (limited to 'client/gui/menus/transition/text_loading_anim.gdshader')
-rw-r--r--client/gui/menus/transition/text_loading_anim.gdshader13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/gui/menus/transition/text_loading_anim.gdshader b/client/gui/menus/transition/text_loading_anim.gdshader
new file mode 100644
index 00000000..145dab78
--- /dev/null
+++ b/client/gui/menus/transition/text_loading_anim.gdshader
@@ -0,0 +1,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);
+}