API Referenceatlasatlas/graphics
SpotLight
Positioned cone light with inner and outer cutoffs, direction, and range.
Module: atlas/graphics
Positioned cone light with inner and outer cutoffs, direction, and range.
Declaration
export class SpotLight { ... }Constructors
constructor(
position?: Position3d,
direction?: Magnitude3d,
color?: Color,
cutOff?: number,
outerCutOff?: number,
shineColor?: Color,
intensity?: number,
range?: number,
);Properties
position
position: Position3d;direction
direction: Magnitude3d;color
color: Color;shineColor
shineColor: Color;range
range: number;cutOff
cutOff: number;outerCutOff
outerCutOff: number;intensity
intensity: number;Methods
setColor
Updates the color used by this object.
setColor(color: Color): void;createDebugObject
Creates a visual representation of the light for debugging.
createDebugObject(): void;lookAt
Orients toward the target position.
lookAt(target: Position3d): void;castShadows
Enables shadow casting with the requested shadow-map resolution.
castShadows(resolution: number): void;