For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
/
0
Sponsor

ORB-13

plasma globe: crawling lightning filaments

Installation

$ pnpm dlx shadcn@latest add https://shadercn.vercel.app/r/orb-13.json

Usage

import { Orb13 } from "@/components/orbs/orb-13";
<Orb13 size={280} state="idle" />

Props

Component Props

PropTypeDefaultDescription
state"idle" | "thinking" | "speaking""idle"Drive preset the orb eases toward
sizenumber280Rendered size in CSS pixels
paramsPartial<Record<string, number>>-Shader param overrides, see Shader Props
colorsPartial<Record<string, string>>-Shader colour overrides as hex strings
statePresetsPartial<Record<OrbState, Record<string, number>>>-Replace the built-in per-state param presets
stateColorsPartial<Record<OrbState, Record<string, string>>>-Replace the built-in per-state colours
stateVolumesPartial<Record<OrbState, { input?: number; output?: number }>>-Pin the drive volumes a state settles on
volumes{ input?: number; output?: number }-Drive the orb directly, bypassing synthesis
pausedbooleanfalseFreeze the frame loop
pauseOffscreenbooleantrueStop rendering while scrolled out of view
maxDprnumber2Upper bound on the device pixel ratio
classNamestring-Class on the wrapper element
styleCSSProperties-Inline style on the wrapper element
ariaLabelstring-Accessible name for the canvas

Shader Props

Pass any of these through params; each is a single f32 uniform read by the shader.

ParamLabelRangeStepDefault
speedAnim speed0.015100.051
spinSpin rate050.030.2
camDistCamera distance1500.37
focalLens0.15150.12.25
envRadiusGlobe radius0.15150.12.6
swellInput swell010.010.15
tiltAxis tilt040.020.4
filsFilament density0.5120.16
writheWrithe030.020.9
writheFreqWrithe frequency0.280.051.6
sharpArc sharpness0.5600.54
softArc core softness0.0020.50.0020.06
whitenCore whitening00.20.0020.008
coreGainNucleus glow050.051.6
tipGainGlass flare060.051.8
fillBody haze020.010.02
stepClampStep clamp0.33001.540
scatterDiffusion00.50.0030.012
exposureExposure0.12000.511
contrastContrast0.15150.11
saturationSaturation040.021.2
alphaGainAlpha gain0.05150.12.5
edgeEdge sharpness010.011

Colours are passed through colors as hex strings.

ColourLabelDefault
innerNucleus#ff70d8
arcArc#5a5cff
tintTint#ffffff

Credits

Shader by XorDev, ported from orbkit (WebGL/GLSL) to WebGPU/WGSL.