- [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.
-
- [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.
-
+ [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:null setPath]( [page:String path] )
+
+ [page:String path] — required
+
+
+ Set base path for resolving references. If set this path will be prepended to each loaded and found reference.
+
+ Set base path for resolving texture references. If set this path will be prepended found texture reference. If not set and setPath is, it will be used as texture base path.
+