From: Eduardo Date: Sun, 1 Oct 2023 00:43:48 +0000 (+0200) Subject: allow negative values for shader movement X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=fc3e451b5603e10284b89f61409d1fc580db866f;p=The%20Cutests%20To-Do%20List.git allow negative values for shader movement --- diff --git a/themes/default/backgrounds/home_screen_dots.gdshader b/themes/default/backgrounds/home_screen_dots.gdshader index faf2b4a..d2df52e 100644 --- a/themes/default/backgrounds/home_screen_dots.gdshader +++ b/themes/default/backgrounds/home_screen_dots.gdshader @@ -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);