UNPKG

850 BTypeScriptView Raw
1import { PerspectiveCamera } from "../cameras/PerspectiveCamera.js";
2import { Light } from "./Light.js";
3import { LightShadow } from "./LightShadow.js";
4
5/**
6 * Shadow for {@link THREE.PointLight | PointLight}
7 * @see {@link https://github.com/mrdoob/three.js/blob/master/src/lights/PointLightShadow.js | Source}
8 */
9export class PointLightShadow extends LightShadow<PerspectiveCamera> {
10 /**
11 * Read-only flag to check if a given object is of type {@link PointLightShadow}.
12 * @remarks This is a _constant_ value
13 * @defaultValue `true`
14 */
15 readonly isPointLightShadow = true;
16
17 /**
18 * Update the matrices for the camera and shadow, used internally by the renderer.
19 * @param light The light for which the shadow is being rendered.
20 */
21 override updateMatrices(light: Light, viewportIndex?: number): void;
22}