mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
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:
2
types/three/three-core.d.ts
vendored
2
types/three/three-core.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user