12345678910111213141516171819 |
- import * as ProceduralTexturesLib from "../src/index";
- /**
- * Legacy support, defining window.BABYLON.GridMaterial... (global variable).
- *
- * This is the entry point for the UMD module.
- * The entry point for a future ESM package should be index.ts
- */
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
- if (typeof globalObject !== "undefined") {
- (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};
- for (var mat in ProceduralTexturesLib) {
- if (ProceduralTexturesLib.hasOwnProperty(mat)) {
- (<any>globalObject).BABYLON[mat] = (<any>ProceduralTexturesLib)[mat];
- }
- }
- }
- export * from "../src/index";
|