From cd68680034d8d43ba0ca594950daca430ea041fb Mon Sep 17 00:00:00 2001 From: hizzlekizzle Date: Fri, 14 Dec 2018 21:11:25 -0600 Subject: [PATCH] make wiggle parameter able to stop all wiggling --- vhs/shaders/vhs.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vhs/shaders/vhs.slang b/vhs/shaders/vhs.slang index 8eb6205..ae66eec 100644 --- a/vhs/shaders/vhs.slang +++ b/vhs/shaders/vhs.slang @@ -140,7 +140,7 @@ void main() vec2 uv = jumpy(vTexCoord.xy, iTime); vec2 uv2 = uv; - float s = 0.0001 * -d + 0.0001 * wiggle * sin(iTime); + float s = 0.0001 * wiggle * -d + 0.0001 * wiggle * sin(iTime); float e = min(.30,pow(max(0.0,cos(uv.y*4.0+.3)-.75)*(s+0.5)*1.0,3.0))*25.0; float r = (iTime*(2.0*s)); @@ -166,4 +166,4 @@ void main() final = vec4(yiq2rgb(vec3(y,i,q))-pow(s+e*2.0,3.0), 1.0); FragColor = final; -} \ No newline at end of file +}