magic-pixels
    Preparing search index...

    Type Alias GltfLight

    A light of the KHR_lights_punctual extension

    type GltfLight = {
        color?: number[];
        intensity?: number;
        name?: string;
        range?: number;
        spot?: { innerConeAngle?: number; outerConeAngle?: number };
        type: "directional" | "point" | "spot";
    }
    Index
    color?: number[]

    linear RGB, default white

    intensity?: number

    default 1; lux for directional lights, candela for point and spot lights

    name?: string
    range?: number

    cutoff distance for point and spot lights; absent means infinite

    spot?: { innerConeAngle?: number; outerConeAngle?: number }
    type: "directional" | "point" | "spot"