@babylonjs/materials 5.20.0 → 5.22.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.
- package/cell/cell.fragment.js +14 -2
- package/cell/cell.fragment.js.map +1 -1
- package/cell/cell.vertex.js +45 -3
- package/cell/cell.vertex.js.map +1 -1
- package/cell/cellMaterial.js +112 -120
- package/cell/cellMaterial.js.map +1 -1
- package/custom/customMaterial.js +69 -81
- package/custom/customMaterial.js.map +1 -1
- package/custom/pbrCustomMaterial.js +80 -89
- package/custom/pbrCustomMaterial.js.map +1 -1
- package/fire/fire.fragment.js +44 -3
- package/fire/fire.fragment.js.map +1 -1
- package/fire/fire.vertex.js +54 -3
- package/fire/fire.vertex.js.map +1 -1
- package/fire/fireMaterial.js +101 -109
- package/fire/fireMaterial.js.map +1 -1
- package/fur/fur.fragment.js +67 -3
- package/fur/fur.fragment.js.map +1 -1
- package/fur/fur.vertex.js +97 -3
- package/fur/fur.vertex.js.map +1 -1
- package/fur/furMaterial.js +181 -193
- package/fur/furMaterial.js.map +1 -1
- package/gradient/gradient.fragment.js +36 -3
- package/gradient/gradient.fragment.js.map +1 -1
- package/gradient/gradient.vertex.js +41 -3
- package/gradient/gradient.vertex.js.map +1 -1
- package/gradient/gradientMaterial.js +113 -121
- package/gradient/gradientMaterial.js.map +1 -1
- package/grid/grid.fragment.js +8 -2
- package/grid/grid.fragment.js.map +1 -1
- package/grid/grid.vertex.js +22 -3
- package/grid/grid.vertex.js.map +1 -1
- package/grid/gridMaterial.js +93 -101
- package/grid/gridMaterial.js.map +1 -1
- package/lava/lava.fragment.js +62 -3
- package/lava/lava.fragment.js.map +1 -1
- package/lava/lava.vertex.js +84 -3
- package/lava/lava.vertex.js.map +1 -1
- package/lava/lavaMaterial.js +175 -183
- package/lava/lavaMaterial.js.map +1 -1
- package/legacy/legacy-cell.js +2 -2
- package/legacy/legacy-cell.js.map +1 -1
- package/legacy/legacy-custom.js +2 -2
- package/legacy/legacy-custom.js.map +1 -1
- package/legacy/legacy-fire.js +2 -2
- package/legacy/legacy-fire.js.map +1 -1
- package/legacy/legacy-fur.js +2 -2
- package/legacy/legacy-fur.js.map +1 -1
- package/legacy/legacy-gradient.js +2 -2
- package/legacy/legacy-gradient.js.map +1 -1
- package/legacy/legacy-grid.js +2 -2
- package/legacy/legacy-grid.js.map +1 -1
- package/legacy/legacy-lava.js +2 -2
- package/legacy/legacy-lava.js.map +1 -1
- package/legacy/legacy-mix.js +2 -2
- package/legacy/legacy-mix.js.map +1 -1
- package/legacy/legacy-normal.js +2 -2
- package/legacy/legacy-normal.js.map +1 -1
- package/legacy/legacy-shadowOnly.js +2 -2
- package/legacy/legacy-shadowOnly.js.map +1 -1
- package/legacy/legacy-simple.js +2 -2
- package/legacy/legacy-simple.js.map +1 -1
- package/legacy/legacy-sky.js +2 -2
- package/legacy/legacy-sky.js.map +1 -1
- package/legacy/legacy-terrain.js +2 -2
- package/legacy/legacy-terrain.js.map +1 -1
- package/legacy/legacy-triPlanar.js +2 -2
- package/legacy/legacy-triPlanar.js.map +1 -1
- package/legacy/legacy-water.js +2 -2
- package/legacy/legacy-water.js.map +1 -1
- package/legacy/legacy.js +2 -2
- package/legacy/legacy.js.map +1 -1
- package/mix/mix.fragment.js +33 -2
- package/mix/mix.fragment.js.map +1 -1
- package/mix/mix.vertex.js +67 -3
- package/mix/mix.vertex.js.map +1 -1
- package/mix/mixMaterial.js +166 -174
- package/mix/mixMaterial.js.map +1 -1
- package/normal/normal.fragment.js +41 -3
- package/normal/normal.fragment.js.map +1 -1
- package/normal/normal.vertex.js +42 -3
- package/normal/normal.vertex.js.map +1 -1
- package/normal/normalMaterial.js +143 -151
- package/normal/normalMaterial.js.map +1 -1
- package/package.json +3 -6
- package/shadowOnly/shadowOnly.fragment.js +21 -3
- package/shadowOnly/shadowOnly.fragment.js.map +1 -1
- package/shadowOnly/shadowOnly.vertex.js +30 -3
- package/shadowOnly/shadowOnly.vertex.js.map +1 -1
- package/shadowOnly/shadowOnlyMaterial.js +73 -89
- package/shadowOnly/shadowOnlyMaterial.js.map +1 -1
- package/simple/simple.fragment.js +36 -3
- package/simple/simple.fragment.js.map +1 -1
- package/simple/simple.vertex.js +45 -3
- package/simple/simple.vertex.js.map +1 -1
- package/simple/simpleMaterial.js +102 -110
- package/simple/simpleMaterial.js.map +1 -1
- package/sky/sky.fragment.js +17 -3
- package/sky/sky.fragment.js.map +1 -1
- package/sky/sky.vertex.js +20 -3
- package/sky/sky.vertex.js.map +1 -1
- package/sky/skyMaterial.js +111 -119
- package/sky/skyMaterial.js.map +1 -1
- package/terrain/terrain.fragment.js +36 -2
- package/terrain/terrain.fragment.js.map +1 -1
- package/terrain/terrain.vertex.js +67 -3
- package/terrain/terrain.vertex.js.map +1 -1
- package/terrain/terrainMaterial.js +148 -156
- package/terrain/terrainMaterial.js.map +1 -1
- package/triPlanar/triPlanarMaterial.js +157 -165
- package/triPlanar/triPlanarMaterial.js.map +1 -1
- package/triPlanar/triplanar.fragment.js +64 -3
- package/triPlanar/triplanar.fragment.js.map +1 -1
- package/triPlanar/triplanar.vertex.js +45 -3
- package/triPlanar/triplanar.vertex.js.map +1 -1
- package/water/water.fragment.js +83 -3
- package/water/water.fragment.js.map +1 -1
- package/water/water.vertex.js +56 -3
- package/water/water.vertex.js.map +1 -1
- package/water/waterMaterial.js +284 -313
- package/water/waterMaterial.js.map +1 -1
package/legacy/legacy-fire.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../fire/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-fire.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-fire.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-fire.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-fire.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,eAAe,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../fire/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../fire/index\";\n"]}
|
package/legacy/legacy-fur.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../fur/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
package/legacy/legacy-fur.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-fur.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-fur.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-fur.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-fur.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,cAAc,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../fur/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../fur/index\";\n"]}
|
@@ -4,9 +4,9 @@ import * as MatLib from "../gradient/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-gradient.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-gradient.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-gradient.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-gradient.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,mBAAmB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../gradient/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../gradient/index\";\n"]}
|
package/legacy/legacy-grid.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../grid/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-grid.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-grid.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-grid.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-grid.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,eAAe,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../grid/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../grid/index\";\n"]}
|
package/legacy/legacy-lava.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../lava/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-lava.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-lava.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-lava.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-lava.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,eAAe,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../lava/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../lava/index\";\n"]}
|
package/legacy/legacy-mix.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../mix/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
package/legacy/legacy-mix.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-mix.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-mix.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-mix.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-mix.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,cAAc,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../mix/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../mix/index\";\n"]}
|
package/legacy/legacy-normal.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../normal/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-normal.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-normal.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-normal.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-normal.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,iBAAiB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../normal/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../normal/index\";\n"]}
|
@@ -4,9 +4,9 @@ import * as MatLib from "../shadowOnly/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-shadowOnly.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-shadowOnly.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-shadowOnly.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-shadowOnly.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,qBAAqB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../shadowOnly/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../shadowOnly/index\";\n"]}
|
package/legacy/legacy-simple.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../simple/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-simple.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-simple.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-simple.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-simple.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,iBAAiB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../simple/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../simple/index\";\n"]}
|
package/legacy/legacy-sky.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../sky/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
package/legacy/legacy-sky.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-sky.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-sky.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-sky.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-sky.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,cAAc,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../sky/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../sky/index\";\n"]}
|
package/legacy/legacy-terrain.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../terrain/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-terrain.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-terrain.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-terrain.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-terrain.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,kBAAkB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../terrain/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../terrain/index\";\n"]}
|
@@ -4,9 +4,9 @@ import * as MatLib from "../triPlanar/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-triPlanar.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-triPlanar.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-triPlanar.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-triPlanar.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,oBAAoB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../triPlanar/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../triPlanar/index\";\n"]}
|
package/legacy/legacy-water.js
CHANGED
@@ -4,9 +4,9 @@ import * as MatLib from "../water/index.js";
|
|
4
4
|
* This is the entry point for the UMD module.
|
5
5
|
* The entry point for a future ESM package should be index.ts
|
6
6
|
*/
|
7
|
-
|
7
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
8
|
if (typeof globalObject !== "undefined") {
|
9
|
-
for (
|
9
|
+
for (const key in MatLib) {
|
10
10
|
globalObject.BABYLON[key] = MatLib[key];
|
11
11
|
}
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-water.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-water.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC;;;GAGG;AACH,
|
1
|
+
{"version":3,"file":"legacy-water.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy-water.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC;;;GAGG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,gBAAgB,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../water/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in MatLib) {\n (<any>globalObject).BABYLON[key] = (<any>MatLib)[key];\n }\n}\nexport * from \"../water/index\";\n"]}
|
package/legacy/legacy.js
CHANGED
@@ -6,10 +6,10 @@ import * as MatLib from "../index.js";
|
|
6
6
|
* This is the entry point for the UMD module.
|
7
7
|
* The entry point for a future ESM package should be index.ts
|
8
8
|
*/
|
9
|
-
|
9
|
+
const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
10
10
|
if (typeof globalObject !== "undefined") {
|
11
11
|
globalObject.BABYLON = globalObject.BABYLON || {};
|
12
|
-
for (
|
12
|
+
for (const mat in MatLib) {
|
13
13
|
globalObject.BABYLON[mat] = MatLib[mat];
|
14
14
|
}
|
15
15
|
}
|
package/legacy/legacy.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC;;;;;GAKG;AACH,
|
1
|
+
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/legacy/legacy.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC;;;;;GAKG;AACH,MAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IAC/B,YAAa,CAAC,OAAO,GAAS,YAAa,CAAC,OAAO,IAAI,EAAE,CAAC;IAChE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QAChB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,MAAO,CAAC,GAAG,CAAC,CAAC;KACzD;CACJ;AACD,cAAc,UAAU,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as MatLib from \"../index\";\n/**\n * Legacy support, defining window.BABYLON.GridMaterial... (global variable).\n *\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};\n for (const mat in MatLib) {\n (<any>globalObject).BABYLON[mat] = (<any>MatLib)[mat];\n }\n}\nexport * from \"../index\";\n"]}
|
package/mix/mix.fragment.js
CHANGED
@@ -12,10 +12,57 @@ import "@babylonjs/core/Shaders/ShadersInclude/depthPrePass.js";
|
|
12
12
|
import "@babylonjs/core/Shaders/ShadersInclude/lightFragment.js";
|
13
13
|
import "@babylonjs/core/Shaders/ShadersInclude/fogFragment.js";
|
14
14
|
import "@babylonjs/core/Shaders/ShadersInclude/imageProcessingCompatibility.js";
|
15
|
-
|
16
|
-
|
15
|
+
const name = "mixPixelShader";
|
16
|
+
const shader = `precision highp float;
|
17
|
+
uniform vec4 vSpecularColor;
|
18
|
+
varying vec3 vPositionW;
|
19
|
+
varying vec3 vNormalW;
|
20
|
+
#ifdef VERTEXCOLOR
|
21
|
+
varying vec4 vColor;
|
22
|
+
#include<helperFunctions>
|
23
|
+
#include<__decl__lightFragment>[0..maxSimultaneousLights]
|
24
|
+
#ifdef DIFFUSE
|
25
|
+
varying vec2 vTextureUV;
|
26
|
+
uniform sampler2D mixMap2Sampler;
|
27
|
+
uniform sampler2D diffuse1Sampler;
|
28
|
+
uniform sampler2D diffuse5Sampler;
|
29
|
+
#endif
|
30
|
+
#include<lightsFragmentFunctions>
|
31
|
+
#include<shadowsFragmentFunctions>
|
32
|
+
#include<clipPlaneFragmentDeclaration>
|
33
|
+
#include<fogFragmentDeclaration>
|
34
|
+
#define CUSTOM_FRAGMENT_DEFINITIONS
|
35
|
+
void main(void) {
|
36
|
+
#include<clipPlaneFragment>
|
37
|
+
vec3 viewDirectionW=normalize(vEyePosition.xyz-vPositionW);
|
38
|
+
vec4 mixColor2=vec4(1.,1.,1.,1.);
|
39
|
+
#ifdef SPECULARTERM
|
40
|
+
float glossiness=vSpecularColor.a;
|
41
|
+
float glossiness=0.;
|
42
|
+
float alpha=vDiffuseColor.a;
|
43
|
+
vec3 normalW=normalize(vNormalW);
|
44
|
+
vec3 normalW=vec3(1.0,1.0,1.0);
|
45
|
+
#ifdef DIFFUSE
|
46
|
+
vec4 mixColor=texture2D(mixMap1Sampler,vTextureUV);
|
47
|
+
mixColor.rgb*=vTextureInfos.y;
|
package/mix/mix.fragment.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mix.fragment.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/mix/mix.fragment.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,+CAAiC;AACvD,mEAAqD;AACrD,4EAA8D;AAC9D,uEAAyD;AACzD,2EAA6D;AAC7D,4EAA8D;AAC9D,gFAAkE;AAClE,0EAA4D;AAC5D,qEAAuD;AACvD,gEAAkD;AAClD,iEAAmD;AACnD,+DAAiD;AACjD,gFAAkE;AAElE,
|
1
|
+
{"version":3,"file":"mix.fragment.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/mix/mix.fragment.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,+CAAiC;AACvD,mEAAqD;AACrD,4EAA8D;AAC9D,uEAAyD;AACzD,2EAA6D;AAC7D,4EAA8D;AAC9D,gFAAkE;AAClE,0EAA4D;AAC5D,qEAAuD;AACvD,gEAAkD;AAClD,iEAAmD;AACnD,+DAAiD;AACjD,gFAAkE;AAElE,MAAM,IAAI,GAAG,gBAAgB,CAAC;AAC9B,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHd,CAAC;AACF,aAAa;AACb,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACxC,cAAc;AACd,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"core/Engines/shaderStore\";\nimport \"core/Shaders/ShadersInclude/helperFunctions\";\nimport \"core/Shaders/ShadersInclude/lightFragmentDeclaration\";\nimport \"core/Shaders/ShadersInclude/lightUboDeclaration\";\nimport \"core/Shaders/ShadersInclude/lightsFragmentFunctions\";\nimport \"core/Shaders/ShadersInclude/shadowsFragmentFunctions\";\nimport \"core/Shaders/ShadersInclude/clipPlaneFragmentDeclaration\";\nimport \"core/Shaders/ShadersInclude/fogFragmentDeclaration\";\nimport \"core/Shaders/ShadersInclude/clipPlaneFragment\";\nimport \"core/Shaders/ShadersInclude/depthPrePass\";\nimport \"core/Shaders/ShadersInclude/lightFragment\";\nimport \"core/Shaders/ShadersInclude/fogFragment\";\nimport \"core/Shaders/ShadersInclude/imageProcessingCompatibility\";\n\nconst name = \"mixPixelShader\";\nconst shader = `precision highp float;\runiform vec4 vEyePosition;\runiform vec4 vDiffuseColor;\r#ifdef SPECULARTERM\nuniform vec4 vSpecularColor;\r#endif\nvarying vec3 vPositionW;\r#ifdef NORMAL\nvarying vec3 vNormalW;\r#endif\n#ifdef VERTEXCOLOR\nvarying vec4 vColor;\r#endif\n#include<helperFunctions>\n#include<__decl__lightFragment>[0..maxSimultaneousLights]\n#ifdef DIFFUSE\nvarying vec2 vTextureUV;\runiform sampler2D mixMap1Sampler;\runiform vec2 vTextureInfos;\r#ifdef MIXMAP2\nuniform sampler2D mixMap2Sampler;\r#endif\nuniform sampler2D diffuse1Sampler;\runiform sampler2D diffuse2Sampler;\runiform sampler2D diffuse3Sampler;\runiform sampler2D diffuse4Sampler;\runiform vec2 diffuse1Infos;\runiform vec2 diffuse2Infos;\runiform vec2 diffuse3Infos;\runiform vec2 diffuse4Infos;\r#ifdef MIXMAP2\nuniform sampler2D diffuse5Sampler;\runiform sampler2D diffuse6Sampler;\runiform sampler2D diffuse7Sampler;\runiform sampler2D diffuse8Sampler;\runiform vec2 diffuse5Infos;\runiform vec2 diffuse6Infos;\runiform vec2 diffuse7Infos;\runiform vec2 diffuse8Infos;\r#endif\n#endif\n#include<lightsFragmentFunctions>\n#include<shadowsFragmentFunctions>\n#include<clipPlaneFragmentDeclaration>\n#include<fogFragmentDeclaration>\n#define CUSTOM_FRAGMENT_DEFINITIONS\nvoid main(void) {\r#define CUSTOM_FRAGMENT_MAIN_BEGIN\n#include<clipPlaneFragment>\nvec3 viewDirectionW=normalize(vEyePosition.xyz-vPositionW);\rvec4 finalMixColor=vec4(1.,1.,1.,1.);\rvec3 diffuseColor=vDiffuseColor.rgb;\r#ifdef MIXMAP2\nvec4 mixColor2=vec4(1.,1.,1.,1.);\r#endif\n#ifdef SPECULARTERM\nfloat glossiness=vSpecularColor.a;\rvec3 specularColor=vSpecularColor.rgb;\r#else\nfloat glossiness=0.;\r#endif\nfloat alpha=vDiffuseColor.a;\r#ifdef NORMAL\nvec3 normalW=normalize(vNormalW);\r#else\nvec3 normalW=vec3(1.0,1.0,1.0);\r#endif\n#ifdef DIFFUSE\nvec4 mixColor=texture2D(mixMap1Sampler,vTextureUV);\r#include<depthPrePass>\nmixColor.rgb*=vTextureInfos.y;\rvec4 diffuse1Color=texture2D(diffuse1Sampler,vTextureUV*diffuse1Infos);\rvec4 diffuse2Color=texture2D(diffuse2Sampler,vTextureUV*diffuse2Infos);\rvec4 diffuse3Color=texture2D(diffuse3Sampler,vTextureUV*diffuse3Infos);\rvec4 diffuse4Color=texture2D(diffuse4Sampler,vTextureUV*diffuse4Infos);\rdiffuse1Color.rgb*=mixColor.r;\rdiffuse2Color.rgb=mix(diffuse1Color.rgb,diffuse2Color.rgb,mixColor.g);\rdiffuse3Color.rgb=mix(diffuse2Color.rgb,diffuse3Color.rgb,mixColor.b);\rfinalMixColor.rgb=mix(diffuse3Color.rgb,diffuse4Color.rgb,1.0-mixColor.a);\r#ifdef MIXMAP2\nmixColor=texture2D(mixMap2Sampler,vTextureUV);\rmixColor.rgb*=vTextureInfos.y;\rvec4 diffuse5Color=texture2D(diffuse5Sampler,vTextureUV*diffuse5Infos);\rvec4 diffuse6Color=texture2D(diffuse6Sampler,vTextureUV*diffuse6Infos);\rvec4 diffuse7Color=texture2D(diffuse7Sampler,vTextureUV*diffuse7Infos);\rvec4 diffuse8Color=texture2D(diffuse8Sampler,vTextureUV*diffuse8Infos);\rdiffuse5Color.rgb=mix(finalMixColor.rgb,diffuse5Color.rgb,mixColor.r);\rdiffuse6Color.rgb=mix(diffuse5Color.rgb,diffuse6Color.rgb,mixColor.g);\rdiffuse7Color.rgb=mix(diffuse6Color.rgb,diffuse7Color.rgb,mixColor.b);\rfinalMixColor.rgb=mix(diffuse7Color.rgb,diffuse8Color.rgb,1.0-mixColor.a);\r#endif\n#endif\n#ifdef VERTEXCOLOR\nfinalMixColor.rgb*=vColor.rgb;\r#endif\nvec3 diffuseBase=vec3(0.,0.,0.);\rlightingInfo info;\rfloat shadow=1.;\r#ifdef SPECULARTERM\nvec3 specularBase=vec3(0.,0.,0.);\r#endif\n#include<lightFragment>[0..maxSimultaneousLights]\n#if defined(VERTEXALPHA) || defined(INSTANCESCOLOR)\nalpha*=vColor.a;\r#endif\n#ifdef SPECULARTERM\nvec3 finalSpecular=specularBase*specularColor;\r#else\nvec3 finalSpecular=vec3(0.0);\r#endif\nvec3 finalDiffuse=clamp(diffuseBase*diffuseColor*finalMixColor.rgb,0.0,1.0);\rvec4 color=vec4(finalDiffuse+finalSpecular,alpha);\r#include<fogFragment>\ngl_FragColor=color;\r#include<imageProcessingCompatibility>\n#define CUSTOM_FRAGMENT_MAIN_END\n}\r`;\n// Sideeffect\nShaderStore.ShadersStore[name] = shader;\n/** @hidden */\nexport const mixPixelShader = { name, shader };\n"]}
|
package/mix/mix.vertex.js
CHANGED
@@ -14,10 +14,74 @@ import "@babylonjs/core/Shaders/ShadersInclude/clipPlaneVertex.js";
|
|
14
14
|
import "@babylonjs/core/Shaders/ShadersInclude/fogVertex.js";
|
15
15
|
import "@babylonjs/core/Shaders/ShadersInclude/shadowsVertex.js";
|
16
16
|
import "@babylonjs/core/Shaders/ShadersInclude/vertexColorMixing.js";
|
17
|
-
|
18
|
-
|
17
|
+
const name = "mixVertexShader";
|
18
|
+
const shader = `precision highp float;attribute vec3 position;
|
19
|
+
#ifdef NORMAL
|
20
|
+
attribute vec3 normal;
|
21
|
+
#endif
|
22
|
+
#ifdef UV1
|
23
|
+
attribute vec2 uv;
|
24
|
+
#endif
|
25
|
+
#ifdef UV2
|
26
|
+
attribute vec2 uv2;
|
27
|
+
#endif
|
28
|
+
#ifdef VERTEXCOLOR
|
29
|
+
attribute vec4 color;
|
30
|
+
#endif
|
31
|
+
#include<bonesDeclaration>
|
32
|
+
#include<bakedVertexAnimationDeclaration>
|
33
|
+
#include<instancesDeclaration>
|
34
|
+
uniform mat4 view;uniform mat4 viewProjection;
|
35
|
+
#ifdef DIFFUSE
|
36
|
+
varying vec2 vTextureUV;uniform mat4 textureMatrix;uniform vec2 vTextureInfos;
|
37
|
+
#endif
|
38
|
+
#ifdef POINTSIZE
|
39
|
+
uniform float pointSize;
|
40
|
+
#endif
|
41
|
+
varying vec3 vPositionW;
|
42
|
+
#ifdef NORMAL
|
43
|
+
varying vec3 vNormalW;
|
44
|
+
#endif
|
45
|
+
#ifdef VERTEXCOLOR
|
46
|
+
varying vec4 vColor;
|
47
|
+
#endif
|
48
|
+
#include<clipPlaneVertexDeclaration>
|
49
|
+
#include<fogVertexDeclaration>
|
50
|
+
#include<__decl__lightFragment>[0..maxSimultaneousLights]
|
51
|
+
#define CUSTOM_VERTEX_DEFINITIONS
|
52
|
+
void main(void) {
|
53
|
+
#define CUSTOM_VERTEX_MAIN_BEGIN
|
54
|
+
#include<instancesVertex>
|
55
|
+
#include<bonesVertex>
|
56
|
+
#include<bakedVertexAnimation>
|
57
|
+
vec4 worldPos=finalWorld*vec4(position,1.0);gl_Position=viewProjection*worldPos;vPositionW=vec3(worldPos);
|
58
|
+
#ifdef NORMAL
|
59
|
+
vNormalW=normalize(vec3(finalWorld*vec4(normal,0.0)));
|
60
|
+
#endif
|
61
|
+
#ifndef UV1
|
62
|
+
vec2 uv=vec2(0.,0.);
|
63
|
+
#endif
|
64
|
+
#ifndef UV2
|
65
|
+
vec2 uv2=vec2(0.,0.);
|
66
|
+
#endif
|
67
|
+
#ifdef DIFFUSE
|
68
|
+
if (vTextureInfos.x==0.)
|
69
|
+
{vTextureUV=vec2(textureMatrix*vec4(uv,1.0,0.0));}
|
70
|
+
else
|
71
|
+
{vTextureUV=vec2(textureMatrix*vec4(uv2,1.0,0.0));}
|
72
|
+
#endif
|
73
|
+
#include<clipPlaneVertex>
|
74
|
+
#include<fogVertex>
|
75
|
+
#include<shadowsVertex>[0..maxSimultaneousLights]
|
76
|
+
#include<vertexColorMixing>
|
77
|
+
#if defined(POINTSIZE) && !defined(WEBGPU)
|
78
|
+
gl_PointSize=pointSize;
|
79
|
+
#endif
|
80
|
+
#define CUSTOM_VERTEX_MAIN_END
|
81
|
+
}
|
82
|
+
`;
|
19
83
|
// Sideeffect
|
20
84
|
ShaderStore.ShadersStore[name] = shader;
|
21
85
|
/** @hidden */
|
22
|
-
export
|
86
|
+
export const mixVertexShader = { name, shader };
|
23
87
|
//# sourceMappingURL=mix.vertex.js.map
|
package/mix/mix.vertex.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mix.vertex.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/mix/mix.vertex.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,+CAAiC;AACvD,oEAAsD;AACtD,mFAAqE;AACrE,wEAA0D;AAC1D,8EAAgE;AAChE,wEAA0D;AAC1D,4EAA8D;AAC9D,uEAAyD;AACzD,mEAAqD;AACrD,+DAAiD;AACjD,wEAA0D;AAC1D,mEAAqD;AACrD,6DAA+C;AAC/C,iEAAmD;AACnD,qEAAuD;AAEvD,
|
1
|
+
{"version":3,"file":"mix.vertex.js","sourceRoot":"","sources":["../../../../../lts/materials/generated/mix/mix.vertex.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,+CAAiC;AACvD,oEAAsD;AACtD,mFAAqE;AACrE,wEAA0D;AAC1D,8EAAgE;AAChE,wEAA0D;AAC1D,4EAA8D;AAC9D,uEAAyD;AACzD,mEAAqD;AACrD,+DAAiD;AACjD,wEAA0D;AAC1D,mEAAqD;AACrD,6DAA+C;AAC/C,iEAAmD;AACnD,qEAAuD;AAEvD,MAAM,IAAI,GAAG,iBAAiB,CAAC;AAC/B,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEd,CAAC;AACF,aAAa;AACb,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACxC,cAAc;AACd,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"core/Engines/shaderStore\";\nimport \"core/Shaders/ShadersInclude/bonesDeclaration\";\nimport \"core/Shaders/ShadersInclude/bakedVertexAnimationDeclaration\";\nimport \"core/Shaders/ShadersInclude/instancesDeclaration\";\nimport \"core/Shaders/ShadersInclude/clipPlaneVertexDeclaration\";\nimport \"core/Shaders/ShadersInclude/fogVertexDeclaration\";\nimport \"core/Shaders/ShadersInclude/lightFragmentDeclaration\";\nimport \"core/Shaders/ShadersInclude/lightUboDeclaration\";\nimport \"core/Shaders/ShadersInclude/instancesVertex\";\nimport \"core/Shaders/ShadersInclude/bonesVertex\";\nimport \"core/Shaders/ShadersInclude/bakedVertexAnimation\";\nimport \"core/Shaders/ShadersInclude/clipPlaneVertex\";\nimport \"core/Shaders/ShadersInclude/fogVertex\";\nimport \"core/Shaders/ShadersInclude/shadowsVertex\";\nimport \"core/Shaders/ShadersInclude/vertexColorMixing\";\n\nconst name = \"mixVertexShader\";\nconst shader = `precision highp float;attribute vec3 position;\n#ifdef NORMAL\nattribute vec3 normal;\n#endif\n#ifdef UV1\nattribute vec2 uv;\n#endif\n#ifdef UV2\nattribute vec2 uv2;\n#endif\n#ifdef VERTEXCOLOR\nattribute vec4 color;\n#endif\n#include<bonesDeclaration>\n#include<bakedVertexAnimationDeclaration>\n#include<instancesDeclaration>\nuniform mat4 view;uniform mat4 viewProjection;\n#ifdef DIFFUSE\nvarying vec2 vTextureUV;uniform mat4 textureMatrix;uniform vec2 vTextureInfos;\n#endif\n#ifdef POINTSIZE\nuniform float pointSize;\n#endif\nvarying vec3 vPositionW;\n#ifdef NORMAL\nvarying vec3 vNormalW;\n#endif\n#ifdef VERTEXCOLOR\nvarying vec4 vColor;\n#endif\n#include<clipPlaneVertexDeclaration>\n#include<fogVertexDeclaration>\n#include<__decl__lightFragment>[0..maxSimultaneousLights]\n#define CUSTOM_VERTEX_DEFINITIONS\nvoid main(void) {\n#define CUSTOM_VERTEX_MAIN_BEGIN\n#include<instancesVertex>\n#include<bonesVertex>\n#include<bakedVertexAnimation>\nvec4 worldPos=finalWorld*vec4(position,1.0);gl_Position=viewProjection*worldPos;vPositionW=vec3(worldPos);\n#ifdef NORMAL\nvNormalW=normalize(vec3(finalWorld*vec4(normal,0.0)));\n#endif\n#ifndef UV1\nvec2 uv=vec2(0.,0.);\n#endif\n#ifndef UV2\nvec2 uv2=vec2(0.,0.);\n#endif\n#ifdef DIFFUSE\nif (vTextureInfos.x==0.)\n{vTextureUV=vec2(textureMatrix*vec4(uv,1.0,0.0));}\nelse\n{vTextureUV=vec2(textureMatrix*vec4(uv2,1.0,0.0));}\n#endif\n#include<clipPlaneVertex>\n#include<fogVertex>\n#include<shadowsVertex>[0..maxSimultaneousLights]\n#include<vertexColorMixing>\n#if defined(POINTSIZE) && !defined(WEBGPU)\ngl_PointSize=pointSize;\n#endif\n#define CUSTOM_VERTEX_MAIN_END\n}\n`;\n// Sideeffect\nShaderStore.ShadersStore[name] = shader;\n/** @hidden */\nexport const mixVertexShader = { name, shader };\n"]}
|