Taos API Reference
    Preparing search index...

    Interface GltfLight

    One KHR_lights_punctual light, with spec defaults filled in. The light's placement comes from the node it is attached to (see GltfNodeInfo.light): point lights use the node's world position; directional and spot lights shine down the node's local −Z axis. Intensity is in the glTF's physical units — candela (lm/sr) for point/spot, lux (lm/m²) for directional.

    interface GltfLight {
        type: GltfLightType;
        name?: string;
        color: [number, number, number];
        intensity: number;
        range: number;
        innerConeAngle: number;
        outerConeAngle: number;
    }
    Index

    Properties

    name?: string
    color: [number, number, number]

    Linear RGB color, default [1,1,1].

    intensity: number

    Brightness in glTF physical units (candela for point/spot, lux for directional). Default 1.

    range: number

    Cutoff distance for point/spot lights; Infinity when unbounded (the default).

    innerConeAngle: number

    Spot inner cone half-angle in radians (full-bright); default 0.

    outerConeAngle: number

    Spot outer cone half-angle in radians (fade to zero); default PI/4.