Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Build the mesh material, applying the colormap when the node carries scalars.

      Mirrors createPointsMaterial — including the #936 double-apply rule, where an authored gain that turns out to be a scalar WINDOW is re-expressed as the LUT range and cleared from the post-LUT GOG.

      attrs is the COMPOSED effective attrs (load-mesh-node.ts passes ctx.applyEffectiveAttrs(node)). leafAttrs is the node's RAW uncomposed attrs, needed only to tell a leaf-authored scalar window from an inherited ancestor gain; it defaults to attrs, which is exactly right when no ancestor authored a gain.

      Parameters

      Returns LuxarMeshMaterial