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-03

a turbulent belt of light girdling the ball, contoured in rainbow

Installation

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

Usage

import { Orb03 } from "@/components/orbs/orb-03";
<Orb03 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.050.6
wanderBelt tilt drift050.020.3
feedbackTilt feedback0400.11.5
camDistCamera distance1500.35
focalLens0.15150.051.05
shellRShell radius0.2200.13
shellWShell weight0.00510.0050.12
planeBelt tightness010.0050.15
turbWarp040.020.55
widthBelt width0.00050.40.00050.004
pulseBelt breathing010.010
surgeBelt surge010.010
hueContour hue0600.125
spreadColour spread030.021
envRadiusEnvelope radius0.15200.13.3
envCoreEnvelope core0.31.020.010.92
fillBody fill0400.050.1
stepClampStep clamp520000251500
scatterDiffusion00.10.00020.0006
exposureExposure20100000501500
contrastContrast0.15150.051.2
saturationSaturation040.021.25
alphaGainAlpha gain0.05150.12
edgeEdge sharpness010.011
edgeFadeHalo falloff0.130.0150.98

Colours are passed through colors as hex strings.

ColourLabelDefault
tintTint#ffffff

Credits

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