API Referenceatlasatlas/graphics
DirectionalLight
Light with a direction and no positional origin, suitable for sunlight.
Module: atlas/graphics
Light with a direction and no positional origin, suitable for sunlight.
Declaration
export class DirectionalLight { ... }Constructors
constructor(
direction?: Magnitude3d,
color?: Color,
shineColor?: Color,
intensity?: number,
);Properties
direction
direction: Magnitude3d;color
color: Color;shineColor
shineColor: Color;intensity
intensity: number;Methods
setColor
Updates the color used by this object.
setColor(color: Color): void;castShadows
Enables shadow casting with the requested shadow-map resolution.
castShadows(resolution: number): void;