legacy-glTF.js 761 B

12345678910111213141516171819
  1. import * as FileLoader from "../glTF/glTFFileLoader.js";
  2. import * as Validation from "../glTF/glTFValidation.js";
  3. /**
  4. * This is the entry point for the UMD module.
  5. * The entry point for a future ESM package should be index.ts
  6. */
  7. const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
  8. if (typeof globalObject !== "undefined") {
  9. globalObject.BABYLON = globalObject.BABYLON || {};
  10. for (const key in FileLoader) {
  11. globalObject.BABYLON[key] = FileLoader[key];
  12. }
  13. for (const key in Validation) {
  14. globalObject.BABYLON[key] = Validation[key];
  15. }
  16. }
  17. export * from "../glTF/glTFFileLoader.js";
  18. export * from "../glTF/glTFValidation.js";
  19. //# sourceMappingURL=legacy-glTF.js.map