Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface NodeDensity

    One node's projected footprint for the last evaluated frame.

    interface NodeDensity {
        path: string;
        areaPx: number;
        elements: number;
        elementsPerPixel: number;
        onScreen: boolean;
        frame: number;
        keep: number;
        blendable: boolean;
    }
    Index
    path: string
    areaPx: number

    Projected bounding-sphere area, drawing-buffer px, clipped to the buffer; 0 when off-screen.

    elements: number

    Visible (committed) element count.

    elementsPerPixel: number

    elements / max(areaPx, 1); 0 when off-screen.

    onScreen: boolean
    frame: number

    Frame stamp of the last evaluation that saw this node.

    keep: number

    Keep fraction the density guard currently applies to this node (1 = no thinning). Written by scene/density-guard.ts; 1 until it runs.

    blendable: boolean

    Whether the node's blend mode sums energy (additive / luminous / volumetric). Written by the density guard; true until it runs, since the blendable cap is the more permissive one.