Taos API Reference
    Preparing search index...

    Interface XrLightSample

    Real-world lighting sampled from the AR runtime this frame.

    interface XrLightSample {
        direction: Vec3;
        color: Vec3;
        intensity: number;
        sh: Float32Array;
    }
    Index

    Properties

    direction: Vec3

    Direction the dominant real light travels (scene-ward), in reference space — ready to assign to DirectionalLight.direction.

    color: Vec3

    Dominant light color × intensity (linear RGB).

    intensity: number

    Scalar brightness of the dominant light (max RGB component).

    Order-2 ambient spherical-harmonics, 9 coefficients × RGB (27 floats), in reference space — feed an ambient/IBL term. Empty if unavailable.