UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

45 lines (41 loc) 1.42 kB
import { bo as unregisterGLTFExtension, bp as registerGLTFExtension } from './index-MZPybX0H.esm.js'; const NAME = "KHR_mesh_quantization"; /** * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_mesh_quantization/README.md) */ // eslint-disable-next-line @typescript-eslint/naming-convention class KHR_mesh_quantization { /** * @internal */ constructor(loader) { /** * The name of this extension. */ this.name = NAME; this.enabled = loader.isExtensionUsed(NAME); } /** @internal */ dispose() { } } let _Registered = false; /** * Registers the KHR_mesh_quantization glTF loader extension. * Safe to call multiple times; only the first call has an effect. */ // eslint-disable-next-line @typescript-eslint/naming-convention function RegisterKHR_mesh_quantization() { if (_Registered) { return; } _Registered = true; unregisterGLTFExtension(NAME); registerGLTFExtension(NAME, true, (loader) => new KHR_mesh_quantization(loader)); } /** * Re-exports the pure implementation and applies the runtime registration side effect. * Import "./KHR_mesh_quantization.pure" for tree-shakeable, side-effect-free usage. */ RegisterKHR_mesh_quantization(); export { KHR_mesh_quantization, RegisterKHR_mesh_quantization }; //# sourceMappingURL=KHR_mesh_quantization-DnSeZ5xN.esm.js.map