A dark voxel tunnel with volumetric light rays, drifting cubes, and mouse-driven camera parallax.
pnpm dlx shadcn@latest add @gammaui/voxel-wall
The VoxelWallScene component renders a full-screen voxel tunnel: thousands of instanced cubes form a room with a rectangular light portal at the far end. Cubes subtly drift toward the light, god rays and bloom add atmosphere, and the camera responds to pointer movement.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Optional class name for the outer wrapper div. |
height | string | number | "100%" | Height of the canvas container. |
<div className="fixed inset-0">
<VoxelWallScene />
</div><div className="h-[500px] w-full overflow-hidden rounded-xl">
<VoxelWallScene height="100%" />
</div>wall.tsx if needed on low-end devices.