UNPKG

586 BTypeScriptView Raw
1import { Material } from "../materials/Material.js";
2import { Texture } from "../textures/Texture.js";
3import { Loader } from "./Loader.js";
4import { LoadingManager } from "./LoadingManager.js";
5
6export class MaterialLoader extends Loader<Material> {
7 /**
8 * @default {}
9 */
10 textures: { [key: string]: Texture };
11
12 constructor(manager?: LoadingManager);
13
14 parse(json: unknown): Material;
15
16 setTextures(textures: { [key: string]: Texture }): this;
17
18 createMaterialFromType(type: string): Material;
19
20 static createMaterialFromType(type: string): Material;
21}