UNPKG

nanogl-gltf

Version:
16 lines (15 loc) 656 B
import { IExtensionFactory, IExtensionInstance } from "../IExtension"; import GltfLoader from "../../io/GltfLoader"; /** * This extension allows to use Draco compressed Mesh. * It replaces the Mesh's primitives with DracoPrimitives, that acts exactly the same but are loaded from Draco compressed data. * Draco compression can be useful to reduce loading time and memory usage. */ export default class KHR_draco_mesh_compression implements IExtensionFactory { readonly name: string; /** * DracoDecoder, to decode draco compressed data */ static dracoDecoder: any; createInstance(gltfLoader: GltfLoader): IExtensionInstance; }