Viewer - Interaction
    Preparing search index...

    Interface IDirectionalLightApi

    The api for a directional light. A directional light can be created by calling the addDirectionalLight method.

    interface IDirectionalLightApi {
        castShadow: boolean;
        color: Color;
        direction: vec3;
        id: string;
        intensity: number;
        shadowMapBias: number;
        shadowMapResolution: number;
        type: LIGHT_TYPE;
        name?: string;
        order?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    castShadow: boolean

    Option to cast shadows.

    color: Color

    The color of the light.

    direction: vec3

    The direction of the light.

    id: string

    The id of the light.

    intensity: number

    The intensity of the light.

    shadowMapBias: number

    The bias of the shadow map.

    shadowMapResolution: number

    The resolution of the shadow map.

    type: LIGHT_TYPE

    The type of the light.

    name?: string

    The name of the light. Used by the platform.

    order?: number

    The order of the light. Used by the platform.