Manifold WASM Developer Guide
    Preparing search index...

    Function getMaterialByID

    • Override materials when debugging.

      When a mesh is flagged with only, we set the ghost global. Everything gets rendered in the GHOST material, while the flagged mesh is added as a debug node.

      Parameters

      • id: number

        The originalID of the mesh.

      Returns GLTFMaterial | undefined