Neon Iceberg
An engraved mountain on a gridded ice block, from toolcraft.sh/demos/neon-iceberg without its control panel. One three.js mesh holds a 192 by 192 height field, four perimeter walls and four base plates, and a single vertex shader raises the peak, folds its ridges and cuts the jagged seam where rock meets ice. The fragment shader lights the rock from a low side angle and engraves it with horizontal hatching that thickens in shadow, draws a square ink grid on every wall, and prints flowing lines on the plate tops. Every two seconds the base eases apart into four plates. Drag on the iceberg to orbit it.
npx shadcn@latest add @compronents/neon-icebergInstalls from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.
| Prop | Type | Default | Description |
|---|---|---|---|
| settings | Partial<NeonIcebergSettings> | NEON_ICEBERG_DEFAULTS | Overrides for any of the 38 shape, pattern and material values or the two colours. |
| orbit | { position, up } | The demo's three-quarter view | Initial camera pose. Dragging orbits from here. |
| playing / duration | boolean / number | true / 2 | Loop the plates parting, seconds per loop. When off, the plates rest fully parted. |
| background | string | "#FAFAFA" | Colour behind the iceberg. |
| renderScale | number | 2 | Backing-pixel multiplier on top of devicePixelRatio. |
| className / style | string / CSSProperties | — | Root styling. Fills its parent; the 3:4 artboard is contained and centred. |
settingstupleShape, seam, grid, plate print, light and engraving values, plus rock and ice colours.
backgroundcolorColour behind the iceberg.
three