import Light, { LightOpts } from '../Light'; export interface DirectionalLightOpts extends LightOpts { shadowBias: number; shadowSlopeScale: number; /** * Shadow cascade. * Use PSSM technique when it is larger than 1 and have a unique directional light in scene. */ shadowCascade: number; /** * Available when shadowCascade is larger than 1 and have a unique directional light in scene. */ cascadeSplitLogFactor: number; } /** * @example * const light = new clay.light.Directional({ * intensity: 0.5, * color: [1.0, 0.0, 0.0] * }); * light.position.set(10, 10, 10); * light.lookAt(clay.Vector3.ZERO); * scene.add(light); */ declare class DirectionalLight extends Light { shadowBias: number; shadowSlopeScale: number; shadowCascade: number; cascadeSplitLogFactor: number; readonly type = "DIRECTIONAL_LIGHT"; constructor(opts?: Partial); clone(): DirectionalLight; } export default DirectionalLight;