Taos API Reference
    Preparing search index...

    Interface SpotLightOptions

    Construction options for SpotLight. Every field is optional and maps to the like-named property; omitted fields keep the property default. There is no position/direction — a spot light is placed and aimed by its GameObject's transform; see SpotLight.worldPosition / SpotLight.worldDirection.

    interface SpotLightOptions {
        color?: Vec3;
        intensity?: number;
        range?: number;
        innerAngle?: number;
        outerAngle?: number;
        castShadow?: boolean;
        projectionTexture?: GPUTexture | null;
        iesProfileIndex?: number;
    }
    Index

    Properties

    color?: Vec3

    Linear RGB color multiplier. Adopted by reference.

    intensity?: number

    Luminous intensity in candela (SpotLight.intensity).

    range?: number

    Maximum range (SpotLight.range).

    innerAngle?: number

    Full-bright cone half-angle in degrees (SpotLight.innerAngle).

    outerAngle?: number

    Fade-to-zero cone half-angle in degrees (SpotLight.outerAngle).

    castShadow?: boolean

    Whether the light casts a shadow map (SpotLight.castShadow).

    projectionTexture?: GPUTexture | null

    Cookie/projector texture (SpotLight.projectionTexture).

    iesProfileIndex?: number

    IES profile LUT index (SpotLight.iesProfileIndex).