Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Build the PHYSICAL material for a material="physical" mesh (MESH_PHYSICAL_MATERIALS_SPEC.md §3.2).

      The third material family, and deliberately not a branch inside createMeshMaterial: nothing that function does — the volumetric warning, the shade knobs, the colormap window, the texture placeholder — applies here. The authoring side refuses every one of those knobs under this material, so what is mapped is exactly what can arrive: the numeric knobs of PHYSICAL_MESH_KNOBS (the six surface fractions and the glass family), the two #rrggbb colours, the compositing attrs opacity / intensity / offset / gamma (each with the meaning materials/mesh-physical/config.ts documents), alpha_cutoff as alphaTest, and the flat/smooth half of shading as flatShading.

      An INHERITED blending_mode can still reach a physical mesh from an ancestor group that the mesh knows nothing about at write time. It is ignored — a physical mesh composites by its own data-driven rule — with a one-time notice naming the node, the same policy the house shader applies to an inherited volumetric.

      Parameters

      Returns LuxarPhysicalMeshMaterial