File size: 674 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Loader } from './Loader';
import { LoadingManager } from './LoadingManager';
import { Texture } from './../textures/Texture';
import { Material } from './../materials/Material';

export class MaterialLoader extends Loader {
	constructor(manager?: LoadingManager);

	/**
	 * @default {}
	 */
	textures: { [key: string]: Texture };

	load(url: string, onLoad: (material: Material) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: Error | ErrorEvent) => void): void;
	loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Material>;
	setTextures(textures: { [key: string]: Texture }): this;
	parse(json: any): Material;
}