component

LightRig

Sun + hemisphere/ground fill with shadow configuration.

⌖ Explore the library in 3D →

Lighting system — lights a whole scene rather than an object.

Add it

npx @runek/cli add lightrig

Pulls @react-three/fiber@^9.6.1, @runek/core@^0.13.0, three@^0.184.0.

Use it

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

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

Props

export interface LightRigProps {
  sunPosition?: Vec3
  sunColor?: string
  sunIntensity?: number
  ambient?: number
  skyColor?: string
  groundColor?: string
  shadows?: boolean
  /** Half-extent of the shadow camera frustum, in units. */
  shadowRange?: number
}

Registry manifest

registry manifest /r/components/lightrig.json Self-contained JSON: inlined source plus resolved dependencies, exactly what runek add lightrig fetches.

Browse the whole catalog in the gallery →.