onLoad — Will be called when load completes. The argument will be the loaded [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator] instance.<br/>
onProgress — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br/>
onError — Will be called when load errors.<br/>
</div>
<div>
Begin loading from url and return the loaded material.
</div>
<h3>.parse([page:String text])</h3>
<div>
text — The textual <em>obj</em> structure to parse.
</div>
<div>
Parse a <em>mtl</em> text structure and returns a [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator] instance.<br/>
onLoad — Will be called when load completes. The argument will be the loaded [page:Object3D object].<br/>
onProgress — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br/>
onError — Will be called when load errors.<br/>
</div>
<div>
Begin loading from url and return the [page:String text] response that will contain the data.
</div>
<h3>.parse([page:String text])</h3>
<div>
text — The textual <em>obj</em> structure to parse.
</div>
<div>
Parse an <em>obj</em> text structure and returns an [page:Object3D object].<br/>
Found objects are converted to [page:Mesh meshs] with a [page:BufferGeometry BufferGeometry] and a default [page:MeshLambertMaterial MeshLambertMaterial].
onLoad — Will be called when load completes. The argument will be the loaded text response.<br/>
onProgress — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br/>
onError — Will be called when load errors.<br/>
</div>
<div>
Begin loading from url and return the [page:String text] response that will contain the data.
</div>
<h3>.setCrossOrigin([page:String value]</h3>
<div>
value — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
</div>
<h3>.setResponseType([page:String value]</h3>
<div>
value — the empty string (default), "arraybuffer", "blob", "document", "json", or "text".