babylonjs-loaders 8.30.5 → 8.31.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.
@@ -1156,37 +1156,32 @@ export class PBRMaterialLoadingAdapter implements IMaterialLoadingAdapter {
1156
1156
  * Automatically enables iridescence.
1157
1157
  * @param value The iridescence intensity value
1158
1158
  */
1159
- set iridescenceWeight(value: number);
1159
+ set thinFilmWeight(value: number);
1160
1160
  /**
1161
1161
  * Sets the iridescence IOR (mapped to PBR iridescence.indexOfRefraction).
1162
- * Automatically enables iridescence.
1163
1162
  * @param value The iridescence IOR value
1164
1163
  */
1165
- set iridescenceIor(value: number);
1164
+ set thinFilmIor(value: number);
1166
1165
  /**
1167
1166
  * Sets the iridescence thickness minimum (mapped to PBR iridescence.minimumThickness).
1168
- * Automatically enables iridescence.
1169
1167
  * @param value The minimum thickness value in nanometers
1170
1168
  */
1171
- set iridescenceThicknessMinimum(value: number);
1169
+ set thinFilmThicknessMinimum(value: number);
1172
1170
  /**
1173
1171
  * Sets the iridescence thickness maximum (mapped to PBR iridescence.maximumThickness).
1174
- * Automatically enables iridescence.
1175
1172
  * @param value The maximum thickness value in nanometers
1176
1173
  */
1177
- set iridescenceThicknessMaximum(value: number);
1174
+ set thinFilmThicknessMaximum(value: number);
1178
1175
  /**
1179
- * Sets the iridescence texture (mapped to PBR iridescence.texture).
1180
- * Automatically enables iridescence.
1181
- * @param value The iridescence intensity texture or null
1176
+ * Sets the thin film weight texture (mapped to PBR iridescence.texture).
1177
+ * @param value The thin film weight texture or null
1182
1178
  */
1183
- set iridescenceTexture(value: Nullable<BaseTexture>);
1179
+ set thinFilmWeightTexture(value: Nullable<BaseTexture>);
1184
1180
  /**
1185
1181
  * Sets the iridescence thickness texture (mapped to PBR iridescence.thicknessTexture).
1186
- * Automatically enables iridescence.
1187
1182
  * @param value The iridescence thickness texture or null
1188
1183
  */
1189
- set iridescenceThicknessTexture(value: Nullable<BaseTexture>);
1184
+ set thinFilmThicknessTexture(value: Nullable<BaseTexture>);
1190
1185
  /**
1191
1186
  * Sets the transmission dispersion value.
1192
1187
  * Note: PBR doesn't have direct dispersion support, so this stores it as metadata.
@@ -1760,41 +1755,35 @@ export class OpenPBRMaterialLoadingAdapter implements IMaterialLoadingAdapter {
1760
1755
  */
1761
1756
  configureGltfStyleAnisotropy(useGltfStyle?: boolean): void;
1762
1757
  /**
1763
- * Sets the iridescence weight.
1764
- * TODO: Implementation pending OpenPBR iridescence feature availability.
1765
- * @param value The iridescence intensity value
1758
+ * Sets the thin film weight.
1759
+ * @param value The thin film weight value
1766
1760
  */
1767
- set iridescenceWeight(value: number);
1761
+ set thinFilmWeight(value: number);
1768
1762
  /**
1769
- * Sets the iridescence IOR.
1770
- * TODO: Implementation pending OpenPBR iridescence feature availability.
1771
- * @param value The iridescence IOR value
1763
+ * Sets the thin film IOR.
1764
+ * @param value The thin film IOR value
1772
1765
  */
1773
- set iridescenceIor(value: number);
1766
+ set thinFilmIor(value: number);
1774
1767
  /**
1775
- * Sets the iridescence thickness minimum.
1776
- * TODO: Implementation pending OpenPBR iridescence feature availability.
1768
+ * Sets the thin film thickness minimum.
1777
1769
  * @param value The minimum thickness value in nanometers
1778
1770
  */
1779
- set iridescenceThicknessMinimum(value: number);
1771
+ set thinFilmThicknessMinimum(value: number);
1780
1772
  /**
1781
- * Sets the iridescence thickness maximum.
1782
- * TODO: Implementation pending OpenPBR iridescence feature availability.
1773
+ * Sets the thin film thickness maximum.
1783
1774
  * @param value The maximum thickness value in nanometers
1784
1775
  */
1785
- set iridescenceThicknessMaximum(value: number);
1776
+ set thinFilmThicknessMaximum(value: number);
1786
1777
  /**
1787
- * Sets the iridescence texture.
1788
- * TODO: Implementation pending OpenPBR iridescence feature availability.
1789
- * @param value The iridescence intensity texture or null
1778
+ * Sets the thin film weight texture.
1779
+ * @param value The thin film weight texture or null
1790
1780
  */
1791
- set iridescenceTexture(value: Nullable<BaseTexture>);
1781
+ set thinFilmWeightTexture(value: Nullable<BaseTexture>);
1792
1782
  /**
1793
- * Sets the iridescence thickness texture.
1794
- * TODO: Implementation pending OpenPBR iridescence feature availability.
1795
- * @param value The iridescence thickness texture or null
1783
+ * Sets the thin film thickness texture.
1784
+ * @param value The thin film thickness texture or null
1796
1785
  */
1797
- set iridescenceThicknessTexture(value: Nullable<BaseTexture>);
1786
+ set thinFilmThicknessTexture(value: Nullable<BaseTexture>);
1798
1787
  /**
1799
1788
  * Sets whether the OpenPBR material is unlit.
1800
1789
  * @param value True to make the material unlit
@@ -2114,29 +2103,29 @@ export interface IMaterialLoadingAdapter {
2114
2103
  */
2115
2104
  configureGltfStyleAnisotropy(useGltfStyle?: boolean): void;
2116
2105
  /**
2117
- * Sets the iridescence weight (OpenPBR: iridescenceWeight, PBR: iridescence.intensity)
2106
+ * Sets the thin film weight
2118
2107
  */
2119
- iridescenceWeight: number;
2108
+ thinFilmWeight: number;
2120
2109
  /**
2121
- * Sets the iridescence IOR (OpenPBR: iridescenceIor, PBR: iridescence.indexOfRefraction)
2110
+ * Sets the thin film IOR
2122
2111
  */
2123
- iridescenceIor: number;
2112
+ thinFilmIor: number;
2124
2113
  /**
2125
- * Sets the iridescence thickness minimum (OpenPBR: iridescenceThicknessMinimum, PBR: iridescence.minimumThickness)
2114
+ * Sets the thin film thickness minimum
2126
2115
  */
2127
- iridescenceThicknessMinimum: number;
2116
+ thinFilmThicknessMinimum: number;
2128
2117
  /**
2129
- * Sets the iridescence thickness maximum (OpenPBR: iridescenceThicknessMaximum, PBR: iridescence.maximumThickness)
2118
+ * Sets the thin film thickness maximum
2130
2119
  */
2131
- iridescenceThicknessMaximum: number;
2120
+ thinFilmThicknessMaximum: number;
2132
2121
  /**
2133
- * Sets the iridescence texture (OpenPBR: iridescenceTexture, PBR: iridescence.intensityTexture)
2122
+ * Sets the thin film iridescence texture
2134
2123
  */
2135
- iridescenceTexture: Nullable<BaseTexture>;
2124
+ thinFilmWeightTexture: Nullable<BaseTexture>;
2136
2125
  /**
2137
- * Sets the iridescence thickness texture (OpenPBR: iridescenceThicknessTexture, PBR: iridescence.thicknessTexture)
2126
+ * Sets the thin film thickness texture
2138
2127
  */
2139
- iridescenceThicknessTexture: Nullable<BaseTexture>;
2128
+ thinFilmThicknessTexture: Nullable<BaseTexture>;
2140
2129
  /**
2141
2130
  * Sets the unlit flag (OpenPBR: unlit, PBR: unlit)
2142
2131
  */
@@ -6562,6 +6551,11 @@ export type SPLATLoadingOptions = {
6562
6551
  * Spatial Y Flip for splat position and orientation
6563
6552
  */
6564
6553
  flipY?: boolean;
6554
+ /**
6555
+ * URL to load fflate from. If null or undefined, will load from unpkg.com
6556
+ * (https://unpkg.com/fflate/umd/index.js)
6557
+ */
6558
+ deflateURL?: string;
6565
6559
  };
6566
6560
 
6567
6561
  }
@@ -8521,37 +8515,32 @@ declare module BABYLON.GLTF2 {
8521
8515
  * Automatically enables iridescence.
8522
8516
  * @param value The iridescence intensity value
8523
8517
  */
8524
- set iridescenceWeight(value: number);
8518
+ set thinFilmWeight(value: number);
8525
8519
  /**
8526
8520
  * Sets the iridescence IOR (mapped to PBR iridescence.indexOfRefraction).
8527
- * Automatically enables iridescence.
8528
8521
  * @param value The iridescence IOR value
8529
8522
  */
8530
- set iridescenceIor(value: number);
8523
+ set thinFilmIor(value: number);
8531
8524
  /**
8532
8525
  * Sets the iridescence thickness minimum (mapped to PBR iridescence.minimumThickness).
8533
- * Automatically enables iridescence.
8534
8526
  * @param value The minimum thickness value in nanometers
8535
8527
  */
8536
- set iridescenceThicknessMinimum(value: number);
8528
+ set thinFilmThicknessMinimum(value: number);
8537
8529
  /**
8538
8530
  * Sets the iridescence thickness maximum (mapped to PBR iridescence.maximumThickness).
8539
- * Automatically enables iridescence.
8540
8531
  * @param value The maximum thickness value in nanometers
8541
8532
  */
8542
- set iridescenceThicknessMaximum(value: number);
8533
+ set thinFilmThicknessMaximum(value: number);
8543
8534
  /**
8544
- * Sets the iridescence texture (mapped to PBR iridescence.texture).
8545
- * Automatically enables iridescence.
8546
- * @param value The iridescence intensity texture or null
8535
+ * Sets the thin film weight texture (mapped to PBR iridescence.texture).
8536
+ * @param value The thin film weight texture or null
8547
8537
  */
8548
- set iridescenceTexture(value: Nullable<BaseTexture>);
8538
+ set thinFilmWeightTexture(value: Nullable<BaseTexture>);
8549
8539
  /**
8550
8540
  * Sets the iridescence thickness texture (mapped to PBR iridescence.thicknessTexture).
8551
- * Automatically enables iridescence.
8552
8541
  * @param value The iridescence thickness texture or null
8553
8542
  */
8554
- set iridescenceThicknessTexture(value: Nullable<BaseTexture>);
8543
+ set thinFilmThicknessTexture(value: Nullable<BaseTexture>);
8555
8544
  /**
8556
8545
  * Sets the transmission dispersion value.
8557
8546
  * Note: PBR doesn't have direct dispersion support, so this stores it as metadata.
@@ -9125,41 +9114,35 @@ declare module BABYLON.GLTF2 {
9125
9114
  */
9126
9115
  configureGltfStyleAnisotropy(useGltfStyle?: boolean): void;
9127
9116
  /**
9128
- * Sets the iridescence weight.
9129
- * TODO: Implementation pending OpenPBR iridescence feature availability.
9130
- * @param value The iridescence intensity value
9117
+ * Sets the thin film weight.
9118
+ * @param value The thin film weight value
9131
9119
  */
9132
- set iridescenceWeight(value: number);
9120
+ set thinFilmWeight(value: number);
9133
9121
  /**
9134
- * Sets the iridescence IOR.
9135
- * TODO: Implementation pending OpenPBR iridescence feature availability.
9136
- * @param value The iridescence IOR value
9122
+ * Sets the thin film IOR.
9123
+ * @param value The thin film IOR value
9137
9124
  */
9138
- set iridescenceIor(value: number);
9125
+ set thinFilmIor(value: number);
9139
9126
  /**
9140
- * Sets the iridescence thickness minimum.
9141
- * TODO: Implementation pending OpenPBR iridescence feature availability.
9127
+ * Sets the thin film thickness minimum.
9142
9128
  * @param value The minimum thickness value in nanometers
9143
9129
  */
9144
- set iridescenceThicknessMinimum(value: number);
9130
+ set thinFilmThicknessMinimum(value: number);
9145
9131
  /**
9146
- * Sets the iridescence thickness maximum.
9147
- * TODO: Implementation pending OpenPBR iridescence feature availability.
9132
+ * Sets the thin film thickness maximum.
9148
9133
  * @param value The maximum thickness value in nanometers
9149
9134
  */
9150
- set iridescenceThicknessMaximum(value: number);
9135
+ set thinFilmThicknessMaximum(value: number);
9151
9136
  /**
9152
- * Sets the iridescence texture.
9153
- * TODO: Implementation pending OpenPBR iridescence feature availability.
9154
- * @param value The iridescence intensity texture or null
9137
+ * Sets the thin film weight texture.
9138
+ * @param value The thin film weight texture or null
9155
9139
  */
9156
- set iridescenceTexture(value: Nullable<BaseTexture>);
9140
+ set thinFilmWeightTexture(value: Nullable<BaseTexture>);
9157
9141
  /**
9158
- * Sets the iridescence thickness texture.
9159
- * TODO: Implementation pending OpenPBR iridescence feature availability.
9160
- * @param value The iridescence thickness texture or null
9142
+ * Sets the thin film thickness texture.
9143
+ * @param value The thin film thickness texture or null
9161
9144
  */
9162
- set iridescenceThicknessTexture(value: Nullable<BaseTexture>);
9145
+ set thinFilmThicknessTexture(value: Nullable<BaseTexture>);
9163
9146
  /**
9164
9147
  * Sets whether the OpenPBR material is unlit.
9165
9148
  * @param value True to make the material unlit
@@ -9481,29 +9464,29 @@ declare module BABYLON.GLTF2 {
9481
9464
  */
9482
9465
  configureGltfStyleAnisotropy(useGltfStyle?: boolean): void;
9483
9466
  /**
9484
- * Sets the iridescence weight (OpenPBR: iridescenceWeight, PBR: iridescence.intensity)
9467
+ * Sets the thin film weight
9485
9468
  */
9486
- iridescenceWeight: number;
9469
+ thinFilmWeight: number;
9487
9470
  /**
9488
- * Sets the iridescence IOR (OpenPBR: iridescenceIor, PBR: iridescence.indexOfRefraction)
9471
+ * Sets the thin film IOR
9489
9472
  */
9490
- iridescenceIor: number;
9473
+ thinFilmIor: number;
9491
9474
  /**
9492
- * Sets the iridescence thickness minimum (OpenPBR: iridescenceThicknessMinimum, PBR: iridescence.minimumThickness)
9475
+ * Sets the thin film thickness minimum
9493
9476
  */
9494
- iridescenceThicknessMinimum: number;
9477
+ thinFilmThicknessMinimum: number;
9495
9478
  /**
9496
- * Sets the iridescence thickness maximum (OpenPBR: iridescenceThicknessMaximum, PBR: iridescence.maximumThickness)
9479
+ * Sets the thin film thickness maximum
9497
9480
  */
9498
- iridescenceThicknessMaximum: number;
9481
+ thinFilmThicknessMaximum: number;
9499
9482
  /**
9500
- * Sets the iridescence texture (OpenPBR: iridescenceTexture, PBR: iridescence.intensityTexture)
9483
+ * Sets the thin film iridescence texture
9501
9484
  */
9502
- iridescenceTexture: Nullable<BaseTexture>;
9485
+ thinFilmWeightTexture: Nullable<BaseTexture>;
9503
9486
  /**
9504
- * Sets the iridescence thickness texture (OpenPBR: iridescenceThicknessTexture, PBR: iridescence.thicknessTexture)
9487
+ * Sets the thin film thickness texture
9505
9488
  */
9506
- iridescenceThicknessTexture: Nullable<BaseTexture>;
9489
+ thinFilmThicknessTexture: Nullable<BaseTexture>;
9507
9490
  /**
9508
9491
  * Sets the unlit flag (OpenPBR: unlit, PBR: unlit)
9509
9492
  */
@@ -13778,6 +13761,11 @@ declare module BABYLON {
13778
13761
  * Spatial Y Flip for splat position and orientation
13779
13762
  */
13780
13763
  flipY?: boolean;
13764
+ /**
13765
+ * URL to load fflate from. If null or undefined, will load from unpkg.com
13766
+ * (https://unpkg.com/fflate/umd/index.js)
13767
+ */
13768
+ deflateURL?: string;
13781
13769
  };
13782
13770
 
13783
13771
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "8.30.5",
3
+ "version": "8.31.1",
4
4
  "main": "babylonjs.loaders.min.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.30.5",
19
- "babylonjs-gltf2interface": "^8.30.5"
18
+ "babylonjs": "^8.31.1",
19
+ "babylonjs-gltf2interface": "^8.31.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",