legacy-glTF2FileLoader.ts 764 B

1234567891011121314151617181920
  1. import * as FileLoader from "../src/glTF/glTFFileLoader";
  2. import * as LoadersV2 from "../src/glTF/2.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. for (var key in LoadersV2) {
  14. (<any>globalObject).BABYLON[key] = (<any>LoadersV2)[key];
  15. }
  16. }
  17. export * from "../src/glTF/glTFFileLoader";
  18. export * from "../src/glTF/2.0";