Options to create a head light.

interface CreateHeadLightOptions {
    ambientColor?: string;
    diffuseColor?: string;
    pitch?: null | number;
}

Hierarchy (view full)

Properties

ambientColor?: string

The illumination color for ambient light rather than direct light.

diffuseColor?: string

The color of the light.

pitch?: null | number

The fixed pitch angle, in degrees, to use for the head light. A value of -90 points down towards the ground, a value of 90 points straight up at the sky. If you want the light to exactly follow the camera and not have a fixed pitch angle, you can set the pitch to null.

-45

2024.1