Options to create a sun light.

interface CreateSunLightOptions {
    ambientColor?: string;
    diffuseColor?: string;
    shadows?: null | boolean | ShadowSettings;
    time?: Date;
}

Hierarchy (view full)

Properties

ambientColor?: string

The illumination color for ambient light rather than direct light.

Since

2020.0

diffuseColor?: string

The color of the light.

Since

2020.0

shadows?: null | boolean | ShadowSettings

Indicates whether the sun light should cast shadows in 3D views. Optionally, the shadow settings can be tuned to improve performance or quality.

Since

2019.0

time?: Date

The time (default is current time).