• Utility function to load a MaterialX material from a URL. This can be used in your own code to load MaterialX materials outside of the glTF loading process. The URL should point to a MaterialX XML file.

    Parameters

    • urlOrXML: string
    • Optionalopts: {
          loadingManager?: LoadingManager;
          materialNameOrIndex?: string | number;
          url?: string;
      }

    Returns Promise<null | Material>