Luxar Viewer API Documentation - v2026.9.22
    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

    • Update camera-dependent uniforms (viewport, projection kind, near cull).

      Push again after a resize, a projection-kind flip, a near-cull change or a pixel-ratio change. An FOV or ortho-zoom change needs no push.

      Parameters

      • resolution: Vector2

        Viewport resolution in pixels

      • isOrtho: boolean = false

        Whether camera is orthographic (default false)

      • OptionalnearCull: number

        Near-fade start distance in world units (consumed by all four geometry materials via the shared perspectiveNearFade)

      • pixelRatio: number = 1

        Physical render-target pixels per CSS pixel; screen-space appearance constants scale with it above 1×

      Returns void

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

      Parameters

      • texture: DataTexture | null

      Returns void