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

    One node's sort: where its centers are, and where the order goes.

    interface DepthSortRequest {
        centers: GpuTexture;
        textureWidth: number;
        texelsPerElement: number;
        centerMode: CenterMode;
        count: number;
        modelView: ArrayLike<number>;
        target: GpuBuffer;
    }
    Index
    centers: GpuTexture

    The node's RGBA32F element texture.

    textureWidth: number

    Its width in texels (a multiple of texelsPerElement).

    texelsPerElement: number
    centerMode: CenterMode

    Which texels hold the sort center (a line segment sorts on its midpoint).

    count: number

    Elements to order: storage slots [0, count).

    modelView: ArrayLike<number>

    Column-major model-view matrix (camera.matrixWorldInverse × mesh.matrixWorld).

    target: GpuBuffer

    Receives count Uint32 indices, back to front. Needs COPY_DST usage.