UNPKG

nanogl-gltf

Version:
12 lines (11 loc) 533 B
import { IExtensionInstance, IExtensionFactory } from "../IExtension"; import GltfLoader from "../../io/GltfLoader"; /** * This extension allows texture to use webp format for images, for browsers that support it. * It replaces the Texture's PNG/JPEG source Image with the webp source Image. * If the browser does not support webp, this extension will do nothing. */ export default class EXT_texture_webp implements IExtensionFactory { readonly name: string; createInstance(gltfLoader: GltfLoader): IExtensionInstance; }