legacy-glTF.ts 575 B

123456789101112131415
  1. import * as FileLoader from "../src/glTF/glTFFileLoader";
  2. /**
  3. * This is the entry point for the UMD module.
  4. * The entry point for a future ESM package should be index.ts
  5. */
  6. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  7. if (typeof globalObject !== "undefined") {
  8. (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || { };
  9. for (var key in FileLoader) {
  10. (<any>globalObject).BABYLON[key] = (<any>FileLoader)[key];
  11. }
  12. }
  13. export * from "../src/glTF/glTFFileLoader";