Added onProgress and onError arguments to the load function of MaterialLoader (#24834)

see https://threejs.org/docs/#api/loaders/MaterialLoader.load
This commit is contained in:
Furos86
2018-04-09 19:01:15 +02:00
committed by Mohamed Hegazy
parent 6235cb3eb1
commit 7dd9844eae

View File

@@ -2251,7 +2251,7 @@ export class MaterialLoader {
manager: LoadingManager;
textures: { [key: string]: Texture };
load(url: string, onLoad: (material: Material) => void): void;
load(url: string, onLoad: (material: Material) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: Error | ErrorEvent) => void): void;
setTextures(textures: { [key: string]: Texture }): void;
getTexture(name: string): Texture;
parse(json: any): Material;