component

Lamp

Lamp that emits a point light.

⌖ Explore the library in 3D →

Add it

npx runek add lamp

Pulls core, @react-three/fiber@^9.6.1, @react-three/rapier@^2.2.0, three@^0.184.0.

Use it

import { Lamp } from './runek/Lamp'

<Lamp position={[0, 0, 0]} />

Props

export interface LampProps {
  position?: Vec3
  rotation?: Vec3
  height?: number
  /** Base + pole color. Defaults to the world palette's `metal` slot. */
  color?: string
  shadeColor?: string
  lightColor?: string
  intensity?: number
  /** Candle-like intensity flicker, 0–1; 0 holds the light steady. */
  flicker?: number
}

See it live with editable props in the gallery →.