Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...
    • Point material at the shared graph of its configuration, building it on first use, and register leaves as the values its draws forward.

      leaves is held by reference: a later in-place leaf swap (a fresh texture() node assigned into the same record) is picked up by the next draw, but a swap that changes a leaf's SIGNATURE or the key must call this again (the wrappers do, from rebuildGraph).

      Type Parameters

      • T extends object

      Parameters

      • material: NodeMaterial
      • family: string
      • key: unknown
      • leaves: T
      • build: (inputs: T, scratch: NodeMaterial) => void

        runs the geometry's factory over the forwarding leaves into the given scratch material; called once per key.

      Returns SharedTSLGraph

      the shared graph now on material.