From cb9a4158ccdbc3af0235b6ff6c305a6f01ea74ee Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Thu, 19 Jun 2025 12:27:02 -0600 Subject: [PATCH] ditch shadertoy, laggy --- _includes/base-header.html | 145 +---------------------- package.json | 1 - styles.css | 17 --- vendor/shader-web-background.js | 197 -------------------------------- 4 files changed, 1 insertion(+), 359 deletions(-) delete mode 100644 vendor/shader-web-background.js diff --git a/_includes/base-header.html b/_includes/base-header.html index 1208c48..dea19b2 100644 --- a/_includes/base-header.html +++ b/_includes/base-header.html @@ -34,152 +34,9 @@ - - - - - - +
{ - 'use strict'; const t = (a, b) => { - b.initHalfFloatRGBATexture(b.width, b.height); a.texParameteri(a.TEXTURE_2D, - a.TEXTURE_MIN_FILTER, a.LINEAR); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, - a.LINEAR); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE); a.texParameteri(a.TEXTURE_2D, - a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE) - }, x = (a, b) => { - console.warn("shader-web-background cannot shade, adding fallback CSS classes"); - document.documentElement.classList.add("shader-web-background-fallback"); b.classList.add("shader-web-background-fallback"); - if (a instanceof shaderWebBackground.GlError) console.warn("Not sufficient WebGL support:", - a); else throw a; - }; - function y(a, b) { if (!a) throw new shaderWebBackground.ConfigError(b); } - function z(a) { - y(a instanceof HTMLCanvasElement, "config.canvas must be instance of canvas"); - return a - } - function A() { - const a = document.createElement("canvas"), b = a.style; a.id = "shader-web-background"; b.width = - "100vw"; b.height = "100vh"; b.position = "fixed"; b.top = "0"; b.left = "0"; b.zIndex = -9999; return a - } - function B(a, b, c) { - y(a instanceof HTMLScriptElement && a.type === b, 'Shader source element of id "' + - c + '" should be of type: