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.
- package/babylon.glTF2FileLoader.js +1 -1
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +1 -1
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +41 -47
- package/babylonjs.loaders.js +1 -1
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +82 -94
- package/package.json +3 -3
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
1174
|
+
set thinFilmThicknessMaximum(value: number);
|
|
1178
1175
|
/**
|
|
1179
|
-
* Sets the
|
|
1180
|
-
*
|
|
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
|
|
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
|
|
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
|
|
1764
|
-
*
|
|
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
|
|
1761
|
+
set thinFilmWeight(value: number);
|
|
1768
1762
|
/**
|
|
1769
|
-
* Sets the
|
|
1770
|
-
*
|
|
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
|
|
1766
|
+
set thinFilmIor(value: number);
|
|
1774
1767
|
/**
|
|
1775
|
-
* Sets the
|
|
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
|
|
1771
|
+
set thinFilmThicknessMinimum(value: number);
|
|
1780
1772
|
/**
|
|
1781
|
-
* Sets the
|
|
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
|
|
1776
|
+
set thinFilmThicknessMaximum(value: number);
|
|
1786
1777
|
/**
|
|
1787
|
-
* Sets the
|
|
1788
|
-
*
|
|
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
|
|
1781
|
+
set thinFilmWeightTexture(value: Nullable<BaseTexture>);
|
|
1792
1782
|
/**
|
|
1793
|
-
* Sets the
|
|
1794
|
-
*
|
|
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
|
|
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
|
|
2106
|
+
* Sets the thin film weight
|
|
2118
2107
|
*/
|
|
2119
|
-
|
|
2108
|
+
thinFilmWeight: number;
|
|
2120
2109
|
/**
|
|
2121
|
-
* Sets the
|
|
2110
|
+
* Sets the thin film IOR
|
|
2122
2111
|
*/
|
|
2123
|
-
|
|
2112
|
+
thinFilmIor: number;
|
|
2124
2113
|
/**
|
|
2125
|
-
* Sets the
|
|
2114
|
+
* Sets the thin film thickness minimum
|
|
2126
2115
|
*/
|
|
2127
|
-
|
|
2116
|
+
thinFilmThicknessMinimum: number;
|
|
2128
2117
|
/**
|
|
2129
|
-
* Sets the
|
|
2118
|
+
* Sets the thin film thickness maximum
|
|
2130
2119
|
*/
|
|
2131
|
-
|
|
2120
|
+
thinFilmThicknessMaximum: number;
|
|
2132
2121
|
/**
|
|
2133
|
-
* Sets the iridescence texture
|
|
2122
|
+
* Sets the thin film iridescence texture
|
|
2134
2123
|
*/
|
|
2135
|
-
|
|
2124
|
+
thinFilmWeightTexture: Nullable<BaseTexture>;
|
|
2136
2125
|
/**
|
|
2137
|
-
* Sets the
|
|
2126
|
+
* Sets the thin film thickness texture
|
|
2138
2127
|
*/
|
|
2139
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
8533
|
+
set thinFilmThicknessMaximum(value: number);
|
|
8543
8534
|
/**
|
|
8544
|
-
* Sets the
|
|
8545
|
-
*
|
|
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
|
|
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
|
|
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
|
|
9129
|
-
*
|
|
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
|
|
9120
|
+
set thinFilmWeight(value: number);
|
|
9133
9121
|
/**
|
|
9134
|
-
* Sets the
|
|
9135
|
-
*
|
|
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
|
|
9125
|
+
set thinFilmIor(value: number);
|
|
9139
9126
|
/**
|
|
9140
|
-
* Sets the
|
|
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
|
|
9130
|
+
set thinFilmThicknessMinimum(value: number);
|
|
9145
9131
|
/**
|
|
9146
|
-
* Sets the
|
|
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
|
|
9135
|
+
set thinFilmThicknessMaximum(value: number);
|
|
9151
9136
|
/**
|
|
9152
|
-
* Sets the
|
|
9153
|
-
*
|
|
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
|
|
9140
|
+
set thinFilmWeightTexture(value: Nullable<BaseTexture>);
|
|
9157
9141
|
/**
|
|
9158
|
-
* Sets the
|
|
9159
|
-
*
|
|
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
|
|
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
|
|
9467
|
+
* Sets the thin film weight
|
|
9485
9468
|
*/
|
|
9486
|
-
|
|
9469
|
+
thinFilmWeight: number;
|
|
9487
9470
|
/**
|
|
9488
|
-
* Sets the
|
|
9471
|
+
* Sets the thin film IOR
|
|
9489
9472
|
*/
|
|
9490
|
-
|
|
9473
|
+
thinFilmIor: number;
|
|
9491
9474
|
/**
|
|
9492
|
-
* Sets the
|
|
9475
|
+
* Sets the thin film thickness minimum
|
|
9493
9476
|
*/
|
|
9494
|
-
|
|
9477
|
+
thinFilmThicknessMinimum: number;
|
|
9495
9478
|
/**
|
|
9496
|
-
* Sets the
|
|
9479
|
+
* Sets the thin film thickness maximum
|
|
9497
9480
|
*/
|
|
9498
|
-
|
|
9481
|
+
thinFilmThicknessMaximum: number;
|
|
9499
9482
|
/**
|
|
9500
|
-
* Sets the iridescence texture
|
|
9483
|
+
* Sets the thin film iridescence texture
|
|
9501
9484
|
*/
|
|
9502
|
-
|
|
9485
|
+
thinFilmWeightTexture: Nullable<BaseTexture>;
|
|
9503
9486
|
/**
|
|
9504
|
-
* Sets the
|
|
9487
|
+
* Sets the thin film thickness texture
|
|
9505
9488
|
*/
|
|
9506
|
-
|
|
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.
|
|
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.
|
|
19
|
-
"babylonjs-gltf2interface": "^8.
|
|
18
|
+
"babylonjs": "^8.31.1",
|
|
19
|
+
"babylonjs-gltf2interface": "^8.31.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|