aboutsummaryrefslogtreecommitdiff
path: root/client/menu/menu_background.gdshader
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/menu_background.gdshader')
-rw-r--r--client/menu/menu_background.gdshader13
1 files changed, 7 insertions, 6 deletions
diff --git a/client/menu/menu_background.gdshader b/client/menu/menu_background.gdshader
index c88f7b8a..d1dc3f0f 100644
--- a/client/menu/menu_background.gdshader
+++ b/client/menu/menu_background.gdshader
@@ -1,17 +1,18 @@
-shader_type sky;
+shader_type spatial;
uniform sampler2D noise : source_color;
uniform vec3 ccloud : source_color;
uniform vec3 csky : source_color;
-void sky() {
- vec2 uv = SCREEN_UV * 0.2;
- uv += TIME * vec2(0.002,0.004);
+void fragment() {
+ vec2 uv = UV * 0.9;
+ uv += TIME * vec2(0.001,0.002);
float f = texture(noise, uv).x;
f = 1. - f;
- f = pow(f, 3.);
+ f = pow(f, 1.5);
f = floor(f*5.)/5.;
+ f = pow(f, 2.);
- COLOR = mix(csky, ccloud, f);
+ ALBEDO = mix(csky, ccloud, f);
}