component
LightRig
Sun + hemisphere/ground fill with shadow configuration.
Add it
npx runek add lightrig
Pulls core.
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
}
See it live with editable props in the gallery →.