Viewer - Interaction
    Preparing search index...

    Interface ISpotLightApi

    The api for a spot light. A spot light can be created by calling the addSpotLight method.

    interface ISpotLightApi {
        angle: number;
        color: Color;
        decay: number;
        distance: number;
        id: string;
        intensity: number;
        penumbra: number;
        position: vec3;
        target: vec3;
        type: LIGHT_TYPE;
        name?: string;
        order?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    angle: number

    The angle of the light.

    color: Color

    The color of the light.

    decay: number

    The decay of the light.

    distance: number

    The distance of the light.

    id: string

    The id of the light.

    intensity: number

    The intensity of the light.

    penumbra: number

    The penumbra of the light.

    position: vec3

    The position of the light.

    target: vec3

    The target of the light.

    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.