bugfix: minor legibility changes
move elements around and less jitter on the crt effect because it was kinda annoying
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user