class SpotLight
extends Light
import { SpotLight } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
A point light that can cast shadow in one direction.
Constructors
new
SpotLight(color?: Color | string | number,
intensity?: number,
distance?: number,
angle?: number,
penumbra?: number,
decay?: number,
Properties
If non-zero, light will attenuate linearly from maximum intensity at light position down to zero at distance.
position: Vector3
shadow: SpotLightShadow
target: Object3D
Spotlight focus points at target.position.