Spaces:
Running
Running
File size: 598 Bytes
6cd9596 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import { LoadingManager } from './LoadingManager';
import { Texture } from './../textures/Texture';
import { Material } from './../materials/Material';
export class MaterialLoader {
constructor(manager?: LoadingManager);
manager: LoadingManager;
textures: { [key: string]: Texture };
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;
}
|