From 141929329550175de409ae254326ffe897452820 Mon Sep 17 00:00:00 2001 From: Issac332 <119879937+Issac8658@users.noreply.github.com> Date: Tue, 26 May 2026 21:00:50 +0300 Subject: [PATCH] shader fix idk --- shader/worldMachine.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shader/worldMachine.frag b/shader/worldMachine.frag index 3ba77d4..dfe9b08 100644 --- a/shader/worldMachine.frag +++ b/shader/worldMachine.frag @@ -46,7 +46,7 @@ void main(){ frag *= modulate; /* glitch effect */ - float randTime = rand(floor(uTime * 15.0)); + float randTime = rand(floor(uTime * 15.0)).x; vec4 glitchFrag1 = clampedTexture2D(texture, v_texCoord + floor(randTime * 2.0 - 0.5) * texSizeInv); vec4 glitchFrag2 = clampedTexture2D(texture, v_texCoord + floor(rand(floor(uTime * 15.0 + 67.6767)) * 2.0 - 0.5) * texSizeInv); vec4 glitchFrag3 = clampedTexture2D(texture, v_texCoord + floor(rand(floor(uTime * 15.0 + 42.5252)) * 2.0 - 0.5) * texSizeInv);