legacy-glTF1FileLoader.ts 826 B

123456789101112131415161718192021
  1. import * as FileLoader from "../src/glTF/glTFFileLoader";
  2. import * as GLTF1 from "../src/glTF/1.0";
  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. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  8. if (typeof globalObject !== "undefined") {
  9. (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || { };
  10. for (var key in FileLoader) {
  11. (<any>globalObject).BABYLON[key] = (<any>FileLoader)[key];
  12. }
  13. (<any>globalObject).BABYLON.GLTF1 = (<any>globalObject).BABYLON.GLTF1 || { };
  14. for (var key in GLTF1) {
  15. (<any>globalObject).BABYLON.GLTF1[key] = (<any>GLTF1)[key];
  16. }
  17. }
  18. export * from "../src/glTF/glTFFileLoader";
  19. export { GLTF1 };