make wiggle parameter able to stop all wiggling

This commit is contained in:
hizzlekizzle 2018-12-14 21:11:25 -06:00 committed by GitHub
parent c72686bc77
commit cd68680034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ void main()
vec2 uv = jumpy(vTexCoord.xy, iTime); vec2 uv = jumpy(vTexCoord.xy, iTime);
vec2 uv2 = uv; 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 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)); float r = (iTime*(2.0*s));