Skip to Content

Underwater Shaft Scene

Underwater light background scene: a dark sea lit by cyan shafts fanning from an off-frame source, with drifting caustics and rising bubbles. Move the source sideways, or freeze the motion; it stops under reduced motion.

Installation

pnpm dlx shadcn@latest add @01orbital/underwater-shaft-scene

Usage

import { UnderwaterShaftScene } from "@/components/scene/underwater-shaft-scene"

export default function Example() {
  return <UnderwaterShaftScene />
}

API reference

A dark sea lit by cyan shafts fanning from an off-frame source, with drifting caustics and rising bubbles. Move the source sideways with originX; motion stops under reduced motion.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Used in blocks

One block is built with Underwater Shaft Scene.

Last updated on