allow negative values for shader movement
authorEduardo <[email protected]>
Sun, 1 Oct 2023 00:43:48 +0000 (02:43 +0200)
committerEduardo <[email protected]>
Sun, 1 Oct 2023 00:43:48 +0000 (02:43 +0200)
themes/default/backgrounds/home_screen_dots.gdshader

index faf2b4a40fc032ce842666604c65ab8efc3588e6..d2df52e9c81cb1e460ad5736bcb0acc03270ca09 100644 (file)
@@ -3,7 +3,7 @@ shader_type canvas_item;
 uniform vec4 dots_color = vec4(1, 0.86, 0.83, 1);
 uniform float radius: hint_range(0.0, 1.0, 0.01) = .07;
 uniform float grid_size: hint_range(1.0, 200.0, 1.00) = 7.;
-uniform float speed: hint_range(0.0, 2.0, 0.01) = .5;
+uniform float speed: hint_range(-2.0, 2.0, 0.01) = .5;
 
 void fragment() {
        vec2 uv = (FRAGCOORD.xy - (1.0 / SCREEN_PIXEL_SIZE).xy) / min((1.0 / SCREEN_PIXEL_SIZE).x, (1.0 / SCREEN_PIXEL_SIZE).y);