Lightwell Dive
Lightwell Dive is a hypnotic WebGL animation that pulls your eye down into an endless glowing tunnel of swirling light and color. It’s fully customizable, hue, brightness, spin, speed, and more, and it respects the user’s *prefers-reduced-motion* setting by freezing the animation for those who prefer less movement on screen.
WordPress Dashboard Now 90% Notices
Client Insists on Using a Font from 1998
New Homepage Video Autoplays with Sound
Instructions
speed — Controls how fast the animation plays. It's a multiplier on the simulation time that advances each frame. At 1.0 it runs at normal speed, 2.0 is twice as fast, 0.5 is half speed. Negative values play the effect in reverse. In your config, 0.83 slightly slows it down.
steps — The number of raymarching iterations per pixel. More steps means the shader travels deeper into the fractal-like volume, producing richer detail, but at a higher GPU cost. The valid range is roughly 16–128 (the shader loop caps at 128). Your value of 41 is a moderate, performance-friendly choice.
turbulence — How many octaves of warping are applied to the sampled points. Each octave adds another layer of swirling distortion to the light structure. Range is 1–10; more octaves = more chaotic, organic shapes but more computation. 8 gives a heavily warped look.
exposure — A brightness multiplier applied to the accumulated light before any tone mapping. Values above 1 make the glow brighter and hotter, below 1 dims it. 1.51 boosts the brightness noticeably.
zoom — Controls the field of view. Higher values make the camera appear to zoom in (narrower field of view, shapes look bigger), lower values zoom out and reveal more of the structure. 0.46 is quite zoomed out, showing the whole well.
rotation — A fixed initial rotation of the camera view, in radians. It only sets the starting orientation; the scene doesn't keep rotating from this alone.
spin — Continuous rotation speed in radians per second. Unlike rotation, this animates: the view keeps turning over time. 0.56 means the scene completes a full turn roughly every 11 seconds.
hue — Rotates all colors around the color wheel, in radians. 0 leaves colors untouched, Math.PI shifts them halfway around the wheel, 2π returns to the original.
saturation — Adjusts color intensity. 1.0 is unchanged, 0 is fully greyscale, and values above 1 (like your 1.12) oversaturate, pushing colors more vivid.
mono — A boolean that, when true, collapses the entire image to a single tinted color. The luminance of each pixel is extracted and multiplied by the monoColor tint. You have it enabled.
monoColor — The tint used when mono is on. Accepts a hex string (like "#ff0040", with or without #, and 3-digit shorthand works too) or an array of [r, g, b] values from 0 to 1. Your config tints everything crimson red.
tonemap — When true, applies a soft filmic roll-off (1 - exp(-x)) to the brightness. This prevents harsh white clipping in the bright core of the well and makes highlights fade smoothly instead. Usually best left on.
mouse — Enables or disables pointer parallax. When on, moving the pointer near the canvas (or over its parent element) subtly shifts the view. It only listens while the pointer is over the canvas area and resets to center when the pointer leaves or the window loses focus. You've disabled it.
mouseStrength — How far the view shifts in response to the pointer, measured in normalized device coordinates. 0.35 default means the offset can reach about a third of the screen width/height at the edges. Your 0.53 would be a strong effect — though it's inactive since mouse is off.
mouseEase — The smoothing speed of the parallax movement. Higher values make the view snap to the pointer quickly; lower values create a lazy, floaty lag. It's applied as a per-frame exponential ease, so 6.0 is fairly responsive.
paused — Freezes the simulation clock when true. The render loop keeps running (so mouse easing and redraws still work), but time stops advancing, so the scene holds still.
pixelRatio — Forces a specific render resolution scale. 0 means auto: it uses the device's devicePixelRatio. Setting e.g. 0.5 renders at half resolution for performance, 2 renders supersampled for crispness.
maxPixelRatio — A hard cap on the auto-computed pixel ratio. If a high-DPI screen reports devicePixelRatio of 3, this limits rendering to at most 1.5x, saving a lot of GPU work on phones.
maxPixels — A hard cap on total framebuffer pixels (width × height). If the canvas would exceed this (default ~2.2 megapixels), it's scaled down proportionally. This is a safety net for very large or fullscreen canvases on weak GPUs.
respectReducedMotion — When true, the effect honors the user's OS-level "reduce motion" accessibility setting. If that preference is active, the animation clock freezes (rendering a static frame) and the pixel ratio is capped at 1. It also listens live, so if the user toggles the setting, the effect responds immediately.
onFrame — An optional callback invoked after every rendered frame, receiving (simTime, canvas). Useful for syncing external elements to the animation, logging, or driving other effects. null means no callback.
A note on how they're applied: all options are merged over the defaults, and they can be changed at runtime via the returned API's .set() method — for example lightwellDive.set({ mono: false, exposure: 2 }). Changing mouse rebinds the pointer listeners, and changing the resolution-related options triggers an internal resize automatically.