UNPKG

@babylonjs/loaders

Version:

The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.

11 lines (10 loc) 597 B
import { GLTFLoaderExtension } from "./glTFLoader"; import { IGLTFRuntime } from "./glTFLoaderInterfaces"; import { Material } from "@babylonjs/core/Materials/material"; /** @hidden */ export declare class GLTFMaterialsCommonExtension extends GLTFLoaderExtension { constructor(); loadRuntimeExtensionsAsync(gltfRuntime: IGLTFRuntime, onSuccess: () => void, onError: (message: string) => void): boolean; loadMaterialAsync(gltfRuntime: IGLTFRuntime, id: string, onSuccess: (material: Material) => void, onError: (message: string) => void): boolean; private _loadTexture; }