diff --git a/pancakz-v3-beam/application/include/index/main.ts b/pancakz-v3-beam/application/include/index/main.ts index 4ae62c7..565d42d 100644 --- a/pancakz-v3-beam/application/include/index/main.ts +++ b/pancakz-v3-beam/application/include/index/main.ts @@ -313,8 +313,8 @@ function renderFrame(t: number) { gl.uniform1f(U.bloom, /*--*/ 0.5) gl.uniform1f(U.vig, /*----*/ 1) gl.uniform1f(U.noise, /*--*/ noise) - gl.uniform1f(U.flicker, /**/ 0.045) - gl.uniform1f(U.jitter, /*-*/ 0.00075) + gl.uniform1f(U.flicker, /**/ 0.0375) + gl.uniform1f(U.jitter, /*-*/ 0.0005) gl.uniform1f(U.bright, /*-*/ 0.8) gl.uniform1f(U.sat, /*----*/ 1.0) gl.uniform1f(U.corner, /*-*/ 0.1) @@ -325,7 +325,7 @@ function renderFrame(t: number) { } async function nextSlide(init = false) { - const duration = 1000 + const transitionTime = 1000 const nextIndex = slideCounter++ % slides.length if (nextIndex === slideIndex) return slideIndex = nextIndex @@ -365,10 +365,10 @@ async function nextSlide(init = false) { gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, textureCanvasB) if (init) { - tween(0, 0.02, duration, (t) => (noise = t)) - setInterval(nextSlide, duration + 8000) + tween(0, 0.025, transitionTime, (t) => (noise = t)) + setInterval(nextSlide, transitionTime + 8000) } - await tween(0, 1, duration, (t) => (degauss = t)) + await tween(0, 1, transitionTime, (t) => (degauss = t)) textureContextA.drawImage(next.image!, 0, 0, W, H) gl.activeTexture(gl.TEXTURE0) diff --git a/pancakz-v3-beam/application/index.html b/pancakz-v3-beam/application/index.html index c8ce28b..d0f4ccb 100644 --- a/pancakz-v3-beam/application/index.html +++ b/pancakz-v3-beam/application/index.html @@ -30,6 +30,7 @@