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

a meadow folding into itself toward a blue vanishing point

Installation

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

Usage

import { Orb30 } from "@/components/orbs/orb-30";
<Orb30 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
fallFall speed040.010.12
tiltFrame tilt-1.61.60.010
driftWeather drift040.020.2
radiusRadius0.1530.0150.9
scaleTunnel scale0.3200.14.5
bulgeDome bulge040.020.25
ratioFrame ratio1.160.021.8
horizonHorizon-0.90.90.010.14
cloudScaleCloud scale0.180.051.6
cloudCoverCloud cover0.020.980.010.46
streakFreqWall detail0.2200.15
streakRadSmear0.0240.020.5
waterWater010.010.7
flowerScaleFlower scale2120144
flowerDensityFlower density010.010.55
flowerSizeFlower size0.050.60.010.26
frameShadeFrame shading0.21.40.010.62
hazeAerial haze010.010.85
hazeRangeHaze reach0.0051.50.0050.09
gainBrightness0.0540.021.05
contrastContrast0.15100.051.05
saturationSaturation040.021.1
lightKey light030.0150.35
rimRim sheen030.0150.55

Colours are passed through colors as hex strings.

ColourLabelDefault
skySky#4a92e0
cloudCloud#f7fbff
canopyCanopy#12401f
meadowMeadow#5aa63a
waterWater#156f6a
bloomBloom#ff6a3a
sheenSheen#cfe6ff

Credits

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