A loader for loading an .mtl resource, used internaly by [page:OBJLoader].
The Material Template Library format (MTL) or .MTL File Format is a companion file format to .OBJ that describes surface shading
(material) properties of objects within one or more .OBJ files.
[page:LoadingManager loadingManager] — LoadingManager to use. Defaults to [page:DefaultLoadingManager DefaultLoadingManager]
Creates a new [name].
[page:String url] — A string containing the path/URL of the .mtl file.
[page:Function onLoad] — (optional) A function to be called after the loading is successfully completed. The function receives the loaded [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator] instance.
[page:Function onProgress] — (optional) A function to be called while the loading is in progress. The argument will be the XMLHttpRequest instance, which contains [page:Integer total] and [page:Integer loaded] bytes.
[page:Function onError] — (optional) A function to be called if an error occurs during loading. The function receives the error as an argument.
Begin loading from url and return the loaded material.
[page:String path] — required
Set base path for MTL file.
[page:String path] — required
Set base path for additional resources like textures. If set, this path will be used as the base path.
[page:String value] — required
If set, assigns the [link:https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes crossOrigin] attribute of the image to the value of *crossOrigin*, prior to starting the load. Default is *"anonymous"*.
[page:Object options] — required
Set of options on how to construct the materials
[page:String text] — The textual mtl structure to parse. [page:String path] — The path to the MTL file.
Parse a mtl text structure and return a [page:MTLLoaderMaterialCreator] instance.