babylonjs-materials 9.5.0 → 9.5.2

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 (53) hide show
  1. package/babylon.cellMaterial.min.js +1 -1
  2. package/babylon.cellMaterial.min.js.map +1 -1
  3. package/babylon.customMaterial.min.js +1 -1
  4. package/babylon.customMaterial.min.js.map +1 -1
  5. package/babylon.fireMaterial.min.js +1 -1
  6. package/babylon.fireMaterial.min.js.map +1 -1
  7. package/babylon.furMaterial.min.js +1 -1
  8. package/babylon.furMaterial.min.js.map +1 -1
  9. package/babylon.gradientMaterial.min.js +1 -1
  10. package/babylon.gradientMaterial.min.js.map +1 -1
  11. package/babylon.gridMaterial.min.js +1 -1
  12. package/babylon.gridMaterial.min.js.map +1 -1
  13. package/babylon.lavaMaterial.min.js +1 -1
  14. package/babylon.lavaMaterial.min.js.map +1 -1
  15. package/babylon.mixMaterial.min.js +1 -1
  16. package/babylon.mixMaterial.min.js.map +1 -1
  17. package/babylon.normalMaterial.min.js +1 -1
  18. package/babylon.normalMaterial.min.js.map +1 -1
  19. package/babylon.shadowOnlyMaterial.min.js +1 -1
  20. package/babylon.shadowOnlyMaterial.min.js.map +1 -1
  21. package/babylon.simpleMaterial.min.js +1 -1
  22. package/babylon.simpleMaterial.min.js.map +1 -1
  23. package/babylon.skyMaterial.min.js +1 -1
  24. package/babylon.skyMaterial.min.js.map +1 -1
  25. package/babylon.terrainMaterial.min.js +1 -1
  26. package/babylon.terrainMaterial.min.js.map +1 -1
  27. package/babylon.triPlanarMaterial.min.js +1 -1
  28. package/babylon.triPlanarMaterial.min.js.map +1 -1
  29. package/babylon.waterMaterial.min.js +1 -1
  30. package/babylon.waterMaterial.min.js.map +1 -1
  31. package/babylonjs.materials.js +1 -1
  32. package/babylonjs.materials.js.map +1 -1
  33. package/babylonjs.materials.min.js +1 -1
  34. package/babylonjs.materials.min.js.map +1 -1
  35. package/package.json +3 -2
  36. package/rollup.config.umd.mjs +2 -0
  37. package/src/cell.ts +2 -3
  38. package/src/custom.ts +2 -3
  39. package/src/fire.ts +2 -3
  40. package/src/fur.ts +2 -3
  41. package/src/gradient.ts +2 -3
  42. package/src/grid.ts +2 -3
  43. package/src/index.ts +2 -3
  44. package/src/lava.ts +2 -3
  45. package/src/mix.ts +2 -3
  46. package/src/normal.ts +2 -3
  47. package/src/shadowOnly.ts +2 -3
  48. package/src/simple.ts +2 -3
  49. package/src/sky.ts +2 -3
  50. package/src/terrain.ts +2 -3
  51. package/src/triPlanar.ts +2 -3
  52. package/src/water.ts +2 -3
  53. package/webpack.config.js +0 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-materials",
3
- "version": "9.5.0",
3
+ "version": "9.5.2",
4
4
  "main": "babylonjs.materials.min.js",
5
5
  "types": "babylonjs.materials.module.d.ts",
6
6
  "files": [
@@ -9,13 +9,14 @@
9
9
  "scripts": {
10
10
  "build": "npm run clean && npm run build:prod && npm run build:declaration",
11
11
  "build:dev": "rollup -c rollup.config.umd.mjs",
12
+ "build:dev:fast": "rollup -c rollup.config.umd.mjs --environment ROLLUP_DEVMODE:true",
12
13
  "build:prod": "rollup -c rollup.config.umd.mjs --environment ROLLUP_MODE:production",
13
14
  "build:declaration": "build-tools -c pud --config ./config.json",
14
15
  "clean": "rimraf dist && rimraf babylon*.* -g",
15
16
  "test:escheck": "es-check es6 ./babylonjs.materials.js"
16
17
  },
17
18
  "dependencies": {
18
- "babylonjs": "9.5.0"
19
+ "babylonjs": "9.5.2"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@dev/build-tools": "1.0.0",
@@ -2,10 +2,12 @@ import { commonUMDRollupConfiguration } from "../../rollupUMDHelper.mjs";
2
2
  import path from "path";
3
3
 
4
4
  const mode = process.env.ROLLUP_MODE === "production" ? "production" : "development";
5
+ const devMode = process.env.ROLLUP_DEVMODE === "true";
5
6
  const production = mode === "production";
6
7
 
7
8
  export default commonUMDRollupConfiguration({
8
9
  mode,
10
+ devMode,
9
11
  devPackageName: "materials",
10
12
  outputPath: path.resolve("."),
11
13
  entryPoints: {
package/src/cell.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-cell";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-cell";
2
+ export * from "materials/legacy/legacy-cell";
package/src/custom.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-custom";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-custom";
2
+ export * from "materials/legacy/legacy-custom";
package/src/fire.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-fire";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-fire";
2
+ export * from "materials/legacy/legacy-fire";
package/src/fur.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-fur";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-fur";
2
+ export * from "materials/legacy/legacy-fur";
package/src/gradient.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-gradient";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-gradient";
2
+ export * from "materials/legacy/legacy-gradient";
package/src/grid.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-grid";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-grid";
2
+ export * from "materials/legacy/legacy-grid";
package/src/index.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy";
2
+ export * from "materials/legacy/legacy";
package/src/lava.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-lava";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-lava";
2
+ export * from "materials/legacy/legacy-lava";
package/src/mix.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-mix";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-mix";
2
+ export * from "materials/legacy/legacy-mix";
package/src/normal.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-normal";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-normal";
2
+ export * from "materials/legacy/legacy-normal";
package/src/shadowOnly.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-shadowOnly";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-shadowOnly";
2
+ export * from "materials/legacy/legacy-shadowOnly";
package/src/simple.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-simple";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-simple";
2
+ export * from "materials/legacy/legacy-simple";
package/src/sky.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-sky";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-sky";
2
+ export * from "materials/legacy/legacy-sky";
package/src/terrain.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-terrain";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-terrain";
2
+ export * from "materials/legacy/legacy-terrain";
package/src/triPlanar.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-triPlanar";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-triPlanar";
2
+ export * from "materials/legacy/legacy-triPlanar";
package/src/water.ts CHANGED
@@ -1,3 +1,2 @@
1
- import * as materials from "materials/legacy/legacy-water";
2
- export { materials };
3
- export default materials;
1
+ import "materials/legacy/legacy-water";
2
+ export * from "materials/legacy/legacy-water";
package/webpack.config.js DELETED
@@ -1,35 +0,0 @@
1
- const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
2
- const path = require("path");
3
- module.exports = (env) => {
4
- const commonConfig = commonConfigGenerator({
5
- mode: env.production ? "production" : "development",
6
- devPackageName: "materials",
7
- outputPath: path.resolve(__dirname),
8
- entryPoints: {
9
- materials: "./src/index.ts",
10
- cell: "./src/cell.ts",
11
- custom: "./src/custom.ts",
12
- fire: "./src/fire.ts",
13
- fur: "./src/fur.ts",
14
- gradient: "./src/gradient.ts",
15
- grid: "./src/grid.ts",
16
- lava: "./src/lava.ts",
17
- mix: "./src/mix.ts",
18
- normal: "./src/normal.ts",
19
- shadowOnly: "./src/shadowOnly.ts",
20
- simple: "./src/simple.ts",
21
- sky: "./src/sky.ts",
22
- terrain: "./src/terrain.ts",
23
- triPlanar: "./src/triPlanar.ts",
24
- water: "./src/water.ts",
25
- },
26
- alias: {
27
- materials: path.resolve(__dirname, "../../../dev/materials/src"),
28
- },
29
- overrideFilename: (pathData) => {
30
- return pathData.chunk.name === "materials" ? `babylonjs.[name]${env.production ? ".min" : ""}.js` : `babylon.[name]Material${env.production ? ".min" : ""}.js`;
31
- },
32
- minToMax: true,
33
- });
34
- return commonConfig;
35
- };