diff options
Diffstat (limited to 'client/menu/menu_background.gdshader')
-rw-r--r-- | client/menu/menu_background.gdshader | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/menu/menu_background.gdshader b/client/menu/menu_background.gdshader new file mode 100644 index 00000000..c88f7b8a --- /dev/null +++ b/client/menu/menu_background.gdshader @@ -0,0 +1,17 @@ +shader_type sky; + +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); + + float f = texture(noise, uv).x; + f = 1. - f; + f = pow(f, 3.); + f = floor(f*5.)/5.; + + COLOR = mix(csky, ccloud, f); +} |