API Referenceatlasatlas/graphics
Light
Point light with position, range, diffuse color, and specular shine color.
Module: atlas/graphics
Point light with position, range, diffuse color, and specular shine color.
Declaration
export class Light { ... }Constructors
constructor(
position?: Position3d,
color?: Color,
distance?: number,
shineColor?: Color,
intensity?: number,
);Properties
position
position: Position3d;color
color: Color;shineColor
shineColor: Color;intensity
intensity: number;distance
distance: 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;castShadows
Enables shadow casting with the requested shadow-map resolution.
castShadows(resolution: number): void;