From 97b608a306a364b3c4924940ce77970f29debc6b Mon Sep 17 00:00:00 2001 From: sasha80 Date: Mon, 29 Dec 2025 10:57:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B9=D0=BD=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B8=D0=B7=20=D0=A6=D0=9F=D0=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shaders/tools.gdshaderinc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shaders/tools.gdshaderinc b/shaders/tools.gdshaderinc index a08e0ff7..248d949f 100644 --- a/shaders/tools.gdshaderinc +++ b/shaders/tools.gdshaderinc @@ -1,9 +1,10 @@ const float DS = 0.004; /* Относительное расстояние на котором выполняется сглаживание краёв */ +global uniform float random_value; float random_timed(vec2 uv) { - return fract(sin(dot(uv + TIME, vec2(12.9898, 78.233))) * 43758.5453); + return fract(sin(dot(uv + TIME * random_value, vec2(12.9898, 78.233))) * 43758.5453); } float smooth_px(float r, float R, float ds)