From e928688aa492e074efa5716663d38f89caca5683 Mon Sep 17 00:00:00 2001 From: Damocles Date: Mon, 13 Apr 2026 21:34:34 +0200 Subject: [PATCH] =?UTF-8?q?fix=20jarring=20color=20jump=20in=20hex=20shimm?= =?UTF-8?q?er:=20sawtooth=20=E2=86=92=20triangle=20wave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hex_wave.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/hex_wave.frag b/modules/hex_wave.frag index 6c0e4c2..6f204df 100644 --- a/modules/hex_wave.frag +++ b/modules/hex_wave.frag @@ -77,7 +77,8 @@ void main() { if (wf > 0.01 && edgeFactor > 0.0) { // Vary shimmer color across theme gradient using angle + position float angle = atan(p.y, p.x); - float t = fract((angle + 3.14159) / 6.28318 + center.x * 0.003 + center.y * 0.005); + float rawT = fract((angle + 3.14159) / 6.28318 + center.x * 0.003 + center.y * 0.005); + float t = abs(rawT * 2.0 - 1.0); // triangle wave → uC0→uC1→uC2→uC1→uC0, no hard jump vec3 shimmerColor = themeGradient(t); float shimmer = edgeFactor * wf;