three
Version:
JavaScript 3D library
22 lines (16 loc) • 584 B
TypeScript
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 );
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 } ): this;
parse( json: any ): Material;
}