babylonjs-procedural-textures 6.10.0 → 6.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/babylon.brickProceduralTexture.js +128 -115
  2. package/babylon.brickProceduralTexture.js.map +1 -1
  3. package/babylon.brickProceduralTexture.min.js +1 -1
  4. package/babylon.brickProceduralTexture.min.js.map +1 -1
  5. package/babylon.cloudProceduralTexture.js +126 -115
  6. package/babylon.cloudProceduralTexture.js.map +1 -1
  7. package/babylon.cloudProceduralTexture.min.js +1 -1
  8. package/babylon.cloudProceduralTexture.min.js.map +1 -1
  9. package/babylon.fireProceduralTexture.js +146 -162
  10. package/babylon.fireProceduralTexture.js.map +1 -1
  11. package/babylon.fireProceduralTexture.min.js +1 -1
  12. package/babylon.fireProceduralTexture.min.js.map +1 -1
  13. package/babylon.grassProceduralTexture.js +103 -86
  14. package/babylon.grassProceduralTexture.js.map +1 -1
  15. package/babylon.grassProceduralTexture.min.js +1 -1
  16. package/babylon.grassProceduralTexture.min.js.map +1 -1
  17. package/babylon.marbleProceduralTexture.js +115 -115
  18. package/babylon.marbleProceduralTexture.js.map +1 -1
  19. package/babylon.marbleProceduralTexture.min.js +1 -1
  20. package/babylon.marbleProceduralTexture.min.js.map +1 -1
  21. package/babylon.normalMapProceduralTexture.js +94 -78
  22. package/babylon.normalMapProceduralTexture.js.map +1 -1
  23. package/babylon.normalMapProceduralTexture.min.js +1 -1
  24. package/babylon.normalMapProceduralTexture.min.js.map +1 -1
  25. package/babylon.perlinNoiseProceduralTexture.js +130 -76
  26. package/babylon.perlinNoiseProceduralTexture.js.map +1 -1
  27. package/babylon.perlinNoiseProceduralTexture.min.js +1 -1
  28. package/babylon.perlinNoiseProceduralTexture.min.js.map +1 -1
  29. package/babylon.roadProceduralTexture.js +92 -70
  30. package/babylon.roadProceduralTexture.js.map +1 -1
  31. package/babylon.roadProceduralTexture.min.js +1 -1
  32. package/babylon.roadProceduralTexture.min.js.map +1 -1
  33. package/babylon.starfieldProceduralTexture.js +212 -225
  34. package/babylon.starfieldProceduralTexture.js.map +1 -1
  35. package/babylon.starfieldProceduralTexture.min.js +1 -1
  36. package/babylon.starfieldProceduralTexture.min.js.map +1 -1
  37. package/babylon.woodProceduralTexture.js +102 -85
  38. package/babylon.woodProceduralTexture.js.map +1 -1
  39. package/babylon.woodProceduralTexture.min.js +1 -1
  40. package/babylon.woodProceduralTexture.min.js.map +1 -1
  41. package/babylonjs.proceduralTextures.d.ts +20 -20
  42. package/babylonjs.proceduralTextures.js +959 -1038
  43. package/babylonjs.proceduralTextures.js.map +1 -1
  44. package/babylonjs.proceduralTextures.min.js +1 -1
  45. package/babylonjs.proceduralTextures.min.js.map +1 -1
  46. package/babylonjs.proceduralTextures.module.d.ts +64 -64
  47. package/config.json +1 -1
  48. package/package.json +3 -3
  49. package/src/brick.ts +3 -14
  50. package/src/cloud.ts +3 -14
  51. package/src/fire.ts +3 -14
  52. package/src/grass.ts +3 -14
  53. package/src/index.ts +1 -1
  54. package/src/marble.ts +3 -14
  55. package/src/normalMap.ts +3 -14
  56. package/src/perlinNoise.ts +3 -14
  57. package/src/road.ts +3 -14
  58. package/src/starfield.ts +3 -14
  59. package/src/wood.ts +3 -14
  60. package/tsconfig.build.json +6 -3
  61. package/tsconfig.json +2 -1
  62. package/webpack.config.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-procedural-textures",
3
- "version": "6.10.0",
3
+ "version": "6.11.1",
4
4
  "main": "babylonjs.proceduralTextures.js",
5
5
  "types": "babylonjs.proceduralTextures.module.d.ts",
6
6
  "files": [
@@ -14,11 +14,11 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.10.0"
17
+ "babylonjs": "^6.11.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",
21
- "@lts/procedural-textures": "1.0.0",
21
+ "@dev/core": "1.0.0",
22
22
  "source-map-loader": "^4.0.0",
23
23
  "ts-loader": "^9.2.6",
24
24
  "webpack": "^5.73.0",
package/src/brick.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/brick/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/brick/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-brick";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/cloud.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/cloud/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/cloud/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-cloud";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/fire.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/fire/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/fire/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-fire";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/grass.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/grass/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/grass/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-grass";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- import * as proceduralTextures from "procedural-textures/legacy/legacy";
1
+ import * as proceduralTextures from "@lts/procedural-textures/legacy/legacy";
2
2
  export { proceduralTextures };
3
3
  export default proceduralTextures;
package/src/marble.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/marble/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/marble/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-marble";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/normalMap.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/normalMap/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/normalMap/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-normalMap";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/perlinNoise/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/perlinNoise/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-perlinNoise";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/road.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/road/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/road/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-road";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/starfield.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/starfield/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/starfield/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-starfield";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
package/src/wood.ts CHANGED
@@ -1,15 +1,4 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import * as proceduralTexture from "procedural-textures/wood/index";
3
-
4
- /**
5
- * This is the entry point for the UMD module.
6
- * The entry point for a future ESM package should be index.ts
7
- */
8
- const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
- if (typeof globalObject !== "undefined") {
10
- for (const key in proceduralTexture) {
11
- (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
- }
13
- }
14
-
15
- export * from "procedural-textures/wood/index";
2
+ import * as proceduralTexture from "@lts/procedural-textures/legacy/legacy-wood";
3
+ export { proceduralTexture };
4
+ export default proceduralTexture;
@@ -3,11 +3,14 @@
3
3
 
4
4
  "compilerOptions": {
5
5
  "outDir": "./dist",
6
- "rootDir": "./src",
6
+ "rootDir": "../../../",
7
7
  "declaration": false,
8
+ "importHelpers": true,
8
9
  "paths": {
9
- "procedural-textures/*": ["lts/proceduralTextures/dist/*"],
10
+ "core/*": ["dev/core/dist/*"],
11
+ "procedural-textures/*": ["dev/proceduralTextures/src/*"],
12
+ "@lts/procedural-textures/*": ["lts/proceduralTextures/src/*"]
10
13
  }
11
14
  },
12
- "include": ["./src/**/*"]
15
+ "include": ["./src/**/*", "../../../dev/proceduralTextures/src/**/*", "../../../lts/proceduralTextures/src/**/*"]
13
16
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,8 @@
3
3
 
4
4
  "compilerOptions": {
5
5
  "paths": {
6
- "procedural-textures/*": ["lts/proceduralTextures/generated/*"],
6
+ "procedural-textures/*": ["dev/proceduralTextures/src/*"],
7
+ "@lts/procedural-textures/*": ["lts/proceduralTextures/src/*"],
7
8
  }
8
9
  },
9
10
  }
package/webpack.config.js CHANGED
@@ -19,6 +19,10 @@ module.exports = (env) => {
19
19
  starfield: "./src/starfield.ts",
20
20
  wood: "./src/wood.ts",
21
21
  },
22
+ alias: {
23
+ "procedural-textures": path.resolve(__dirname, "../../../dev/proceduralTextures/src"),
24
+ "@lts/procedural-textures": path.resolve(__dirname, "../../../lts/proceduralTextures/src"),
25
+ },
22
26
  overrideFilename: (pathData) => {
23
27
  return pathData.chunk.name === "proceduralTextures" ? `babylonjs.[name]${env.production ? ".min" : ""}.js` : `babylon.[name]ProceduralTexture${env.production ? ".min" : ""}.js`;
24
28
  },