Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...
    • Point material at the shared pick graph of its configuration (built on first use by build into a scratch material) and re-apply the pick state.

      Type Parameters

      • T extends object

      Parameters

      • material: NodeMaterial
      • family: string
      • key: unknown

        everything the factory reads at build time that selects code (the baked element-texture width, the line projection/join/primitive…); leaf presence and texture types are added automatically.

        build receives FORWARDING leaves, and a forwarding texture leaf wraps an independent 1x1 stand-in texture (so the shared graph never pins a material's texture). A factory must therefore never read a value it bakes into code off its inputs: the element-texture width in particular is passed explicitly (elementTextureWidth in the factory config), from the texture the material actually binds.

      • leaves: T
      • build: (inputs: T, scratch: NodeMaterial) => void

      Returns void