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

    Pick materials with a switchable depth convention (both gsplat pick wrappers implement it; points/lines don't — their brightness-as-depth is unconditional). The picking system's per-render mode sync detects the capability via isSurfacePickAwareMaterial, mirroring the CameraAwareMaterial guard idiom.

    interface SurfacePickAwareMaterial {
        setSurfacePickDepth(on: boolean): void;
    }

    Implemented by

    Index
    • Select the pick depth convention: true = real projected depth (front-most wins; the depth-sorted normal surface mode), false = brightness-as-depth (brightest wins; commutative modes).

      Parameters

      • on: boolean

      Returns void