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.
/
163
Sponsor

ORB-30

A meadow folding into itself toward a blue vanishing point

Installation

$ pnpm dlx shadcn@latest add @shadercn/orb-30

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 speed0 – 40.010.12
tiltFrame tilt-1.6 – 1.60.010
driftWeather drift0 – 40.020.2
radiusRadius0.15 – 30.0150.9
scaleTunnel scale0.3 – 200.14.5
bulgeDome bulge0 – 40.020.25
ratioFrame ratio1.1 – 60.021.8
horizonHorizon-0.9 – 0.90.010.14
cloudScaleCloud scale0.1 – 80.051.6
cloudCoverCloud cover0.02 – 0.980.010.46
streakFreqWall detail0.2 – 200.15
streakRadSmear0.02 – 40.020.5
waterWater0 – 10.010.7
flowerScaleFlower scale2 – 120144
flowerDensityFlower density0 – 10.010.55
flowerSizeFlower size0.05 – 0.60.010.26
frameShadeFrame shading0.2 – 1.40.010.62
hazeAerial haze0 – 10.010.85
hazeRangeHaze reach0.005 – 1.50.0050.09
gainBrightness0.05 – 40.021.05
contrastContrast0.15 – 100.051.05
saturationSaturation0 – 40.021.1
lightKey light0 – 30.0150.35
rimRim sheen0 – 30.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

Based on original work by XorDev.