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

a Minecraft Earth — a perfect voxel sphere whose seasons cycle it through lush, cherry-grove, ice, mesa and desert worlds

Installation

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

Usage

import { Orb24 } from "@/components/orbs/orb-24";
<Orb24 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
spinSpin050.030.22
tiltTilt040.020.45
driftTerrain drift0100.050.12
seasonSeason rate0100.050.3
shuffleEmber rate0200.10.8
radiusRadius0.1530.0151.15
blocksBlocks1696164
roughMountains00.80.010.45
scaleTerrain scale0.580.052.4
seaSea level010.010.5
treesTrees010.010.75
caveCaves010.010.4
oreOre density00.60.010.12
glowOre glow050.030.9
coreMolten core010.010.5
textureTexture grain010.010.6
lightKey light030.0151
gainGain0.0550.051
contrastContrast0.15100.051

Colours are passed through colors as hex strings.

ColourLabelDefault
grassGrass#6abe30
dirtMud#6f4a2f
stoneStone#8a8a90
sandSand#dbcf9c
waterWater#2f66d0
leafLeaves#3e8f27
oreOre#4de3ff
lavaLava#ff7b26

Credits

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