Base class for implementing loaders.
Creates a new [name]. This should be called as base class.
Will be called when load starts.
The default is a function with empty body.
Will be called while load progresses.
The default is a function with empty body.
Will be called when load completes.
The default is a function with empty body.
The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS. Default is *"anonymous"*.
[page:Object m] — The parameters to create the material.
[page:String texturePath] — The base path of the textures.
Creates the Material based on the parameters m.
[page:Array materials] — an array of parameters to create materials.
[page:String texturePath] — The base path of the textures.
Creates an array of [page:Material] based on the array of parameters m. The index of the parameters decide the correct index of the materials.