KHR_mesh_quantization.js 697 B

12345678910111213141516171819202122
  1. import { GLTFLoader } from "../glTFLoader.js";
  2. const NAME = "KHR_mesh_quantization";
  3. /**
  4. * [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_mesh_quantization/README.md)
  5. */
  6. // eslint-disable-next-line @typescript-eslint/naming-convention
  7. export class KHR_mesh_quantization {
  8. /**
  9. * @internal
  10. */
  11. constructor(loader) {
  12. /**
  13. * The name of this extension.
  14. */
  15. this.name = NAME;
  16. this.enabled = loader.isExtensionUsed(NAME);
  17. }
  18. /** @internal */
  19. dispose() { }
  20. }
  21. GLTFLoader.RegisterExtension(NAME, (loader) => new KHR_mesh_quantization(loader));
  22. //# sourceMappingURL=KHR_mesh_quantization.js.map