Skip to Content

Light Shafts Scene

God rays background: volumetric light shafts, twelve blurred beams fanning down from a glowing aperture through a dark blue ground. One color drives every alpha; the optional pulse stops under reduced motion.

Installation

pnpm dlx shadcn@latest add @01orbital/light-shafts-scene

Usage

import { LightShaftsScene } from "@/components/scene/light-shafts-scene"

export default function LightShaftsSceneDemo() {
  return (
    <div className="grid h-svh w-full place-items-center p-6">
      <LightShaftsScene animate />
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/light-shafts-scene-demo

API reference

Blurred light shafts fanning down from a glowing aperture through a dark ground. One color drives every alpha; the optional pulse 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 Light Shafts Scene.

Last updated on