# [name]

A loader for loading an .mtl resource, used internaly by [page:OBJMTLLoader] and [page:UTF8Loader].

## Constructor

### [name]( [page:String baseUrl], [page:Object options], [page:String crossOrigin] )

[page:String baseUrl] — The base url from which to find subsequent resources.
[page:Object options] — Options passed to the created material (side, wrap, normalizeRGB, ignoreZeroRGBs).
[page:String crossOrigin] — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
Creates a new [name].

## Properties

## Methods

### [method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )

[page:String url] — required
[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator] instance.
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.
[page:Function onError] — Will be called when load errors.
Begin loading from url and return the loaded material.

### [method:MTLLoaderMaterialCreator parse]( [page:String text] )

[page:String text] — The textual mtl structure to parse.
Parse a mtl text structure and return a [page:MTLLoaderMaterialCreator] instance.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/[name].js examples/js/loaders/[name].js]