nanogl-gltf
Version:
17 lines (16 loc) • 671 B
TypeScript
import GltfLoader from "../../io/GltfLoader";
import { IExtensionFactory, IExtensionInstance } from "../IExtension";
import { IBasisDecoder } from "./basis.types";
/**
* This extension allows Textures to use the basisu format and Images to have an uri with a .ktx2 extension.
* This format is useful to reduce texture size and memory usage.
*/
export default class KHR_texture_basisu implements IExtensionFactory {
readonly decoder: IBasisDecoder;
readonly name: string;
/**
* @param decoder The decoder to use to decode the basis file
*/
constructor(decoder: IBasisDecoder);
createInstance(gltfLoader: GltfLoader): IExtensionInstance;
}