From 358fd20f5319cb4c4418023129284d8dac4226e2 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Wed, 17 Dec 2025 10:26:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shaders/antenas.tres | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shaders/antenas.tres b/shaders/antenas.tres index 1dd2f46b..7334a182 100644 --- a/shaders/antenas.tres +++ b/shaders/antenas.tres @@ -75,10 +75,12 @@ void sector(inout vec4 c, vec2 uv, vec2 center, float a, float da, float r0, flo void antenas(inout vec4 c, vec2 uv, vec2 p0, int cnt, float r0, float r1, inout int index) { float da = 180.0 / float(cnt); + vec4 col; + int j; + vec2 uvr; for (int i = -cnt; i <= cnt; i ++) { - vec4 col; - int j = index; + j = index; if (i == 2) { index--; @@ -89,7 +91,7 @@ void antenas(inout vec4 c, vec2 uv, vec2 p0, int cnt, float r0, float r1, inout col.a = alpha + (random_timed(uv) - 0.5f) * ant_band_c[j].a; if (ant_band_m[j] == ANT_BAND_FAILED) { - vec2 uvr = uv; + uvr = uv; rotate_vec2(uvr, radians(afr), pc0); col.a *= (1.0 - ffr) + tanh(10.0 * sin(TIME * sfr + 2.0 * PI * uvr.x / pfr)) * ffr; }