class three.SpotLight
extends Light
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { SpotLight } = three;
A point light that can cast shadow in one direction.
Constructors
new
SpotLight(color?: ColorRepresentation,
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