LIGHT. MATH. YOUR NEXT BUILD.
Spectral Glass
Dark, irregular glass panels catch drifting red and blue light. Thin prismatic seams split into spectral highlights, while softer reflections travel behind the glass. Hover to draw light into nearby panels.
Category: Light / prismatic panels.
Open Spectral Glass in the live editor to customize its palette, motion, and supported camera controls. Use Take the code to download the configured kit after signing in. Complete membership access is free during the current launch offer.
Presets
- Chromatic Night:
#030406,#e51924,#1640eb - Amber Prism:
#070506,#e43d1c,#b177df - Aurora Glass:
#020608,#0ca796,#4877ec
Shader and camera controls
- Panel density (
panels): 4 to 28. Default:9. - Light drift (
speed): 0 to 1.5. Default:0.35. - Color separation (
dispersion): 0 to 1.5. Default:0.75. - Light intensity (
spectralGlow): 0 to 2. Default:1. - Reflection softness (
softness): 0 to 1. Default:0.6. - Streak length (
streakLength): 0.2 to 1.5. Default:0.65. - Panel angle (
angle): -45 to 45. Default:0. - Film grain (
grain): 0 to 0.04. Default:0.009. - Hover light (
interaction): 0 to 2. Default:0.7. - Grain (
noise): 0 to 0.3. Default:0. - Glow (
glow): 0 to 1.5. Default:0. - Glow radius (
glowRadius): 2 to 40. Default:14. - Fade in (fixed) (
fadeIn): fixed at 0. Default:0. - Fade delay (fixed) (
fadeDelay): fixed at 0. Default:0. - Image opacity (fixed) (
overlayOpacity): fixed at 0.5. Default:0.5. - Camera rotation (
cameraRotation): -180 to 180. Default:0. - Camera zoom (
cameraZoom): 0.3 to 4. Default:1. - Horizontal focus (
cameraX): -2 to 2. Default:0. - Vertical focus (
cameraY): -2 to 2. Default:0.
These ranges describe the published catalog version c95289cdaea2230a65b802c2a20a8e959bc7f32114546534d14a23440d831f21. The website editor can curate or lock particular controls. The live editor and the current MCP settings schema are authoritative for available actions. Existing saved configurations remain supported.
Integration example
Download this shader's kit before running the example. The runtime is a local file from that kit, not a public CDN or npm package.
import { createBackground } from './shader-background.js';
const background = createBackground(
document.querySelector('#background'),
{
"effect": "spectral-glass",
"colors": [
"#030406",
"#e51924",
"#1640eb"
],
"panels": 9,
"speed": 0.35,
"dispersion": 0.75,
"maxPixels": 700000,
"maxFPS": 30
}
);
// On view teardown:
// background.destroy();
Give the host an explicit size, preserve applicable stage CSS from the exported example, and keep content above the decorative canvas. JavaScript, React, and Next.js guides explain integration.
Motion, assets, and licensing
Test the finished page on your target devices, respect reduced motion, and use a pause control for persistent animation. Keep the license and notices included in your kit. Uploaded imagery needs its own usage rights. See performance and licensing.
