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

    Hierarchy

    • ShaderMaterial
      • LinePickingMaterial

    Implements

    Index
    • Clone this picking material. The inherited Material.clone() calls the constructor with no config (throws on config.nodeId), so — mirroring GSplatPickingMaterial.clone() — construct with the same nodeId and copy the runtime-tuned uniform values (camera params, pixel-width scales) across explicitly.

      Returns this

    • Select the pick depth convention (SurfacePickAwareMaterial): true under the depth-ordered surface modes (opaque / normal) writes the real projected depth so the FRONT-MOST element wins, as the user sees it; false (default) keeps brightness-as-depth so the BRIGHTEST wins, right for the commutative modes. Synced per pick render by PickingSystem.renderPickBuffer().

      Parameters

      • on: boolean

      Returns void

    • Camera-dependent uniforms. The ortho branch is read in shader from the projection matrix of the draw (luxarLineIsOrtho), so none is pushed.

      Parameters

      • resolution: Vector2
      • OptionalnearCull: number
      • pixelRatio: number = 1

      Returns void

    • Rebind the line data texture (plain uniform update). Mirrors PointPickingMaterial.updatePointTexture.

      Parameters

      • texture: DataTexture | null

      Returns void