bugfix: minor legibility changes

move elements around and less jitter on the crt effect because it was kinda annoying
This commit is contained in:
2026-06-19 15:05:09 -07:00
parent cee55012a5
commit 96011d6454
4 changed files with 10 additions and 9 deletions
@@ -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)