Loads and parses a MTL asset from a URL.
URL to the MTL file.
Optional
onLoad: anyCallback invoked with the loaded object.
Optional
onProgress: anyCallback for download progress.
Optional
onError: anyCallback for download errors.
setPath setResourcePath
In order for relative texture references to resolve correctly you must call setResourcePath() explicitly prior to load.
Parses a MTL file.
Content of MTL file
setPath setResourcePath
In order for relative texture references to resolve correctly you must call setResourcePath() explicitly prior to parse.
Generated using TypeDoc
Loads a Wavefront .mtl file specifying materials