// -- https://xemantic.github.io/shader-web-background/ const shaderWebBackground = {}; (() => { '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: