From b94681056c9d3820c61593c1ec0d40aecb8f7c34 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Thu, 3 Sep 2026 02:30:44 +0300 Subject: [PATCH] forgor duration? --- modules/home/ghostty/degauss.glsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home/ghostty/degauss.glsl b/modules/home/ghostty/degauss.glsl index 87603d3..85f570e 100644 --- a/modules/home/ghostty/degauss.glsl +++ b/modules/home/ghostty/degauss.glsl @@ -1,7 +1,8 @@ ///degauss.glsl const float BOOT_DELAY = 0.45; +const float DURATION = 1.0; -// How hard the coil hits. +// how hard the coil hits. const float WOBBLE_AMP = 0.055; const float WAVE_FREQ = 9.0; const float WAVE_SPEED = 3.2; @@ -25,6 +26,7 @@ float envelope(float t) { float tail = 1.0 - k * k * k * k; return attack * ring * tail; } + float coilPhase(float t) { float k = clamp(t / DURATION, 0.0, 1.0); return WAVE_SPEED * t * (1.0 - 0.5 * WAVE_GLIDE * k);