babylonjs-serializers 9.12.1 → 9.14.0
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.glTF2Serializer.js +1 -1
- package/babylon.glTF2Serializer.js.map +1 -1
- package/babylon.glTF2Serializer.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +326 -0
- package/babylonjs.serializers.js +1 -1
- package/babylonjs.serializers.js.map +1 -1
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +800 -27
- package/package.json +3 -3
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
declare namespace BABYLON {
|
|
3
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
/**
|
|
@@ -46,6 +49,11 @@ declare namespace BABYLON {
|
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
|
|
52
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
49
57
|
|
|
50
58
|
|
|
51
59
|
|
|
@@ -58,6 +66,7 @@ declare namespace BABYLON {
|
|
|
58
66
|
|
|
59
67
|
|
|
60
68
|
|
|
69
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
61
70
|
|
|
62
71
|
|
|
63
72
|
|
|
@@ -84,6 +93,9 @@ declare namespace BABYLON {
|
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
|
|
96
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
97
|
+
|
|
98
|
+
|
|
87
99
|
|
|
88
100
|
|
|
89
101
|
export var DefaultTranslation: DeepImmutableObject<Vector3>;
|
|
@@ -817,6 +829,9 @@ declare namespace BABYLON {
|
|
|
817
829
|
}
|
|
818
830
|
|
|
819
831
|
|
|
832
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
833
|
+
|
|
834
|
+
|
|
820
835
|
|
|
821
836
|
|
|
822
837
|
/**
|
|
@@ -837,6 +852,17 @@ declare namespace BABYLON {
|
|
|
837
852
|
get wasUsed(): boolean;
|
|
838
853
|
postExportTexture?(context: string, textureInfo: BABYLON.GLTF2.ITextureInfo, babylonTexture: Texture): void;
|
|
839
854
|
}
|
|
855
|
+
/**
|
|
856
|
+
* Registers the KHR_texture_transform glTF serializer extension with the {@link GLTFExporter}.
|
|
857
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
858
|
+
*/
|
|
859
|
+
export function RegisterKHR_texture_transform(): void;
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
864
|
+
* Import "./KHR_texture_transform.pure" for tree-shakeable, side-effect-free usage.
|
|
865
|
+
*/
|
|
840
866
|
|
|
841
867
|
|
|
842
868
|
/**
|
|
@@ -851,8 +877,24 @@ declare namespace BABYLON {
|
|
|
851
877
|
private _exporter;
|
|
852
878
|
constructor(exporter: GLTFExporter);
|
|
853
879
|
dispose(): void;
|
|
880
|
+
/**
|
|
881
|
+
* Called after a texture is exported to register the encoded image MIME type.
|
|
882
|
+
* @param _ - the name of the exported babylon texture (unused)
|
|
883
|
+
* @param textureInfo - the glTF texture info for the exported texture
|
|
884
|
+
*/
|
|
854
885
|
postExportTexture(_: string, textureInfo: BABYLON.GLTF2.ITextureInfo): void;
|
|
855
886
|
}
|
|
887
|
+
/**
|
|
888
|
+
* Registers the KHR_texture_basisu glTF serializer extension with the {@link GLTFExporter}.
|
|
889
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
890
|
+
*/
|
|
891
|
+
export function RegisterKHR_texture_basisu(): void;
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
896
|
+
* Import "./KHR_texture_basisu.pure" for tree-shakeable, side-effect-free usage.
|
|
897
|
+
*/
|
|
856
898
|
|
|
857
899
|
|
|
858
900
|
/**
|
|
@@ -890,6 +932,17 @@ declare namespace BABYLON {
|
|
|
890
932
|
*/
|
|
891
933
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
892
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* Registers the KHR_materials_volume_scatter glTF serializer extension with the {@link GLTFExporter}.
|
|
937
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
938
|
+
*/
|
|
939
|
+
export function RegisterKHR_materials_volume_scatter(): void;
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
944
|
+
* Import "./KHR_materials_volume_scatter.pure" for tree-shakeable, side-effect-free usage.
|
|
945
|
+
*/
|
|
893
946
|
|
|
894
947
|
|
|
895
948
|
/**
|
|
@@ -927,6 +980,17 @@ declare namespace BABYLON {
|
|
|
927
980
|
*/
|
|
928
981
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
929
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* Registers the KHR_materials_volume glTF serializer extension with the {@link GLTFExporter}.
|
|
985
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
986
|
+
*/
|
|
987
|
+
export function RegisterKHR_materials_volume(): void;
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
992
|
+
* Import "./KHR_materials_volume.pure" for tree-shakeable, side-effect-free usage.
|
|
993
|
+
*/
|
|
930
994
|
|
|
931
995
|
|
|
932
996
|
/**
|
|
@@ -946,6 +1010,17 @@ declare namespace BABYLON {
|
|
|
946
1010
|
dispose(): void;
|
|
947
1011
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
948
1012
|
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Registers the KHR_materials_unlit glTF serializer extension with the {@link GLTFExporter}.
|
|
1015
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1016
|
+
*/
|
|
1017
|
+
export function RegisterKHR_materials_unlit(): void;
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1022
|
+
* Import "./KHR_materials_unlit.pure" for tree-shakeable, side-effect-free usage.
|
|
1023
|
+
*/
|
|
949
1024
|
|
|
950
1025
|
|
|
951
1026
|
/**
|
|
@@ -983,6 +1058,17 @@ declare namespace BABYLON {
|
|
|
983
1058
|
*/
|
|
984
1059
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
985
1060
|
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Registers the KHR_materials_transmission glTF serializer extension with the {@link GLTFExporter}.
|
|
1063
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1064
|
+
*/
|
|
1065
|
+
export function RegisterKHR_materials_transmission(): void;
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1070
|
+
* Import "./KHR_materials_transmission.pure" for tree-shakeable, side-effect-free usage.
|
|
1071
|
+
*/
|
|
986
1072
|
|
|
987
1073
|
|
|
988
1074
|
/**
|
|
@@ -1021,6 +1107,17 @@ declare namespace BABYLON {
|
|
|
1021
1107
|
*/
|
|
1022
1108
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1023
1109
|
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Registers the KHR_materials_specular glTF serializer extension with the {@link GLTFExporter}.
|
|
1112
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1113
|
+
*/
|
|
1114
|
+
export function RegisterKHR_materials_specular(): void;
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1119
|
+
* Import "./KHR_materials_specular.pure" for tree-shakeable, side-effect-free usage.
|
|
1120
|
+
*/
|
|
1024
1121
|
|
|
1025
1122
|
|
|
1026
1123
|
/**
|
|
@@ -1042,6 +1139,17 @@ declare namespace BABYLON {
|
|
|
1042
1139
|
postExportMaterialAdditionalTexturesAsync(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1043
1140
|
postExportMaterialAsync(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1044
1141
|
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Registers the KHR_materials_sheen glTF serializer extension with the {@link GLTFExporter}.
|
|
1144
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1145
|
+
*/
|
|
1146
|
+
export function RegisterKHR_materials_sheen(): void;
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1151
|
+
* Import "./KHR_materials_sheen.pure" for tree-shakeable, side-effect-free usage.
|
|
1152
|
+
*/
|
|
1045
1153
|
|
|
1046
1154
|
|
|
1047
1155
|
/**
|
|
@@ -1068,6 +1176,17 @@ declare namespace BABYLON {
|
|
|
1068
1176
|
*/
|
|
1069
1177
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1070
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Registers the KHR_materials_openpbr glTF serializer extension with the {@link GLTFExporter}.
|
|
1181
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1182
|
+
*/
|
|
1183
|
+
export function RegisterKHR_materials_openpbr(): void;
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1188
|
+
* Import "./KHR_materials_openpbr.pure" for tree-shakeable, side-effect-free usage.
|
|
1189
|
+
*/
|
|
1071
1190
|
|
|
1072
1191
|
|
|
1073
1192
|
/**
|
|
@@ -1089,6 +1208,17 @@ declare namespace BABYLON {
|
|
|
1089
1208
|
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1090
1209
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1091
1210
|
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Registers the KHR_materials_iridescence glTF serializer extension with the {@link GLTFExporter}.
|
|
1213
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1214
|
+
*/
|
|
1215
|
+
export function RegisterKHR_materials_iridescence(): void;
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1220
|
+
* Import "./KHR_materials_iridescence.pure" for tree-shakeable, side-effect-free usage.
|
|
1221
|
+
*/
|
|
1092
1222
|
|
|
1093
1223
|
|
|
1094
1224
|
/**
|
|
@@ -1117,6 +1247,17 @@ declare namespace BABYLON {
|
|
|
1117
1247
|
*/
|
|
1118
1248
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1119
1249
|
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Registers the KHR_materials_ior glTF serializer extension with the {@link GLTFExporter}.
|
|
1252
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1253
|
+
*/
|
|
1254
|
+
export function RegisterKHR_materials_ior(): void;
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1259
|
+
* Import "./KHR_materials_ior.pure" for tree-shakeable, side-effect-free usage.
|
|
1260
|
+
*/
|
|
1120
1261
|
|
|
1121
1262
|
|
|
1122
1263
|
/**
|
|
@@ -1146,6 +1287,17 @@ declare namespace BABYLON {
|
|
|
1146
1287
|
postExportMaterialAdditionalTexturesAsync(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1147
1288
|
postExportMaterialAsync(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1148
1289
|
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Registers the KHR_materials_fuzz glTF serializer extension with the {@link GLTFExporter}.
|
|
1292
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1293
|
+
*/
|
|
1294
|
+
export function RegisterKHR_materials_fuzz(): void;
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1299
|
+
* Import "./KHR_materials_fuzz.pure" for tree-shakeable, side-effect-free usage.
|
|
1300
|
+
*/
|
|
1149
1301
|
|
|
1150
1302
|
|
|
1151
1303
|
/**
|
|
@@ -1172,6 +1324,17 @@ declare namespace BABYLON {
|
|
|
1172
1324
|
*/
|
|
1173
1325
|
postExportMaterialAsync(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1174
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Registers the KHR_materials_emissive_strength glTF serializer extension with the {@link GLTFExporter}.
|
|
1329
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1330
|
+
*/
|
|
1331
|
+
export function RegisterKHR_materials_emissive_strength(): void;
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1336
|
+
* Import "./KHR_materials_emissive_strength.pure" for tree-shakeable, side-effect-free usage.
|
|
1337
|
+
*/
|
|
1175
1338
|
|
|
1176
1339
|
|
|
1177
1340
|
/**
|
|
@@ -1202,6 +1365,17 @@ declare namespace BABYLON {
|
|
|
1202
1365
|
*/
|
|
1203
1366
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1204
1367
|
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Registers the KHR_materials_dispersion glTF serializer extension with the {@link GLTFExporter}.
|
|
1370
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1371
|
+
*/
|
|
1372
|
+
export function RegisterKHR_materials_dispersion(): void;
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1377
|
+
* Import "./KHR_materials_dispersion.pure" for tree-shakeable, side-effect-free usage.
|
|
1378
|
+
*/
|
|
1205
1379
|
|
|
1206
1380
|
|
|
1207
1381
|
/**
|
|
@@ -1239,6 +1413,17 @@ declare namespace BABYLON {
|
|
|
1239
1413
|
*/
|
|
1240
1414
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1241
1415
|
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Registers the KHR_materials_diffuse_transmission glTF serializer extension with the {@link GLTFExporter}.
|
|
1418
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1419
|
+
*/
|
|
1420
|
+
export function RegisterKHR_materials_diffuse_transmission(): void;
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1425
|
+
* Import "./KHR_materials_diffuse_transmission.pure" for tree-shakeable, side-effect-free usage.
|
|
1426
|
+
*/
|
|
1242
1427
|
|
|
1243
1428
|
|
|
1244
1429
|
/**
|
|
@@ -1260,6 +1445,17 @@ declare namespace BABYLON {
|
|
|
1260
1445
|
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1261
1446
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1262
1447
|
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Registers the KHR_materials_diffuse_roughness glTF serializer extension with the {@link GLTFExporter}.
|
|
1450
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1451
|
+
*/
|
|
1452
|
+
export function RegisterKHR_materials_diffuse_roughness(): void;
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1457
|
+
* Import "./KHR_materials_diffuse_roughness.pure" for tree-shakeable, side-effect-free usage.
|
|
1458
|
+
*/
|
|
1263
1459
|
|
|
1264
1460
|
|
|
1265
1461
|
/**
|
|
@@ -1289,6 +1485,17 @@ declare namespace BABYLON {
|
|
|
1289
1485
|
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1290
1486
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1291
1487
|
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Registers the KHR_materials_coat glTF serializer extension with the {@link GLTFExporter}.
|
|
1490
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1491
|
+
*/
|
|
1492
|
+
export function RegisterKHR_materials_coat(): void;
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1497
|
+
* Import "./KHR_materials_coat.pure" for tree-shakeable, side-effect-free usage.
|
|
1498
|
+
*/
|
|
1292
1499
|
|
|
1293
1500
|
|
|
1294
1501
|
/**
|
|
@@ -1318,6 +1525,17 @@ declare namespace BABYLON {
|
|
|
1318
1525
|
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1319
1526
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1320
1527
|
}
|
|
1528
|
+
/**
|
|
1529
|
+
* Registers the KHR_materials_clearcoat glTF serializer extension with the {@link GLTFExporter}.
|
|
1530
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1531
|
+
*/
|
|
1532
|
+
export function RegisterKHR_materials_clearcoat(): void;
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1537
|
+
* Import "./KHR_materials_clearcoat.pure" for tree-shakeable, side-effect-free usage.
|
|
1538
|
+
*/
|
|
1321
1539
|
|
|
1322
1540
|
|
|
1323
1541
|
/**
|
|
@@ -1347,6 +1565,17 @@ declare namespace BABYLON {
|
|
|
1347
1565
|
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
1348
1566
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1349
1567
|
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Registers the KHR_materials_anisotropy glTF serializer extension with the {@link GLTFExporter}.
|
|
1570
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1571
|
+
*/
|
|
1572
|
+
export function RegisterKHR_materials_anisotropy(): void;
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1577
|
+
* Import "./KHR_materials_anisotropy.pure" for tree-shakeable, side-effect-free usage.
|
|
1578
|
+
*/
|
|
1350
1579
|
|
|
1351
1580
|
|
|
1352
1581
|
/**
|
|
@@ -1383,6 +1612,17 @@ declare namespace BABYLON {
|
|
|
1383
1612
|
*/
|
|
1384
1613
|
postExportNodeAsync(context: string, node: BABYLON.GLTF2.INode, babylonNode: Node, nodeMap: Map<Node, number>, convertToRightHanded: boolean): Promise<Nullable<BABYLON.GLTF2.INode>>;
|
|
1385
1614
|
}
|
|
1615
|
+
/**
|
|
1616
|
+
* Registers the KHR_lights_punctual glTF serializer extension with the {@link GLTFExporter}.
|
|
1617
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1618
|
+
*/
|
|
1619
|
+
export function RegisterKHR_lights_punctual(): void;
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1624
|
+
* Import "./KHR_lights_punctual.pure" for tree-shakeable, side-effect-free usage.
|
|
1625
|
+
*/
|
|
1386
1626
|
|
|
1387
1627
|
|
|
1388
1628
|
/**
|
|
@@ -1413,6 +1653,17 @@ declare namespace BABYLON {
|
|
|
1413
1653
|
/** @internal */
|
|
1414
1654
|
preGenerateBinaryAsync(bufferManager: BufferManager): Promise<void>;
|
|
1415
1655
|
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Registers the KHR_draco_mesh_compression glTF serializer extension with the {@link GLTFExporter}.
|
|
1658
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1659
|
+
*/
|
|
1660
|
+
export function RegisterKHR_draco_mesh_compression(): void;
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1665
|
+
* Import "./KHR_draco_mesh_compression.pure" for tree-shakeable, side-effect-free usage.
|
|
1666
|
+
*/
|
|
1416
1667
|
|
|
1417
1668
|
|
|
1418
1669
|
/**
|
|
@@ -1427,8 +1678,24 @@ declare namespace BABYLON {
|
|
|
1427
1678
|
private _exporter;
|
|
1428
1679
|
constructor(exporter: GLTFExporter);
|
|
1429
1680
|
dispose(): void;
|
|
1681
|
+
/**
|
|
1682
|
+
* Called after a texture is exported to register the encoded image MIME type.
|
|
1683
|
+
* @param _ - the name of the exported babylon texture (unused)
|
|
1684
|
+
* @param textureInfo - the glTF texture info for the exported texture
|
|
1685
|
+
*/
|
|
1430
1686
|
postExportTexture(_: string, textureInfo: BABYLON.GLTF2.ITextureInfo): void;
|
|
1431
1687
|
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Registers the EXT_texture_webp glTF serializer extension with the {@link GLTFExporter}.
|
|
1690
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1691
|
+
*/
|
|
1692
|
+
export function RegisterEXT_texture_webp(): void;
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1697
|
+
* Import "./EXT_texture_webp.pure" for tree-shakeable, side-effect-free usage.
|
|
1698
|
+
*/
|
|
1432
1699
|
|
|
1433
1700
|
|
|
1434
1701
|
/**
|
|
@@ -1444,8 +1711,24 @@ declare namespace BABYLON {
|
|
|
1444
1711
|
private _exporter;
|
|
1445
1712
|
constructor(exporter: GLTFExporter);
|
|
1446
1713
|
dispose(): void;
|
|
1714
|
+
/**
|
|
1715
|
+
* Called after a texture is exported to register the encoded image MIME type.
|
|
1716
|
+
* @param _ - the name of the exported babylon texture (unused)
|
|
1717
|
+
* @param textureInfo - the glTF texture info for the exported texture
|
|
1718
|
+
*/
|
|
1447
1719
|
postExportTexture(_: string, textureInfo: BABYLON.GLTF2.ITextureInfo): void;
|
|
1448
1720
|
}
|
|
1721
|
+
/**
|
|
1722
|
+
* Registers the EXT_texture_avif glTF serializer extension with the {@link GLTFExporter}.
|
|
1723
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1724
|
+
*/
|
|
1725
|
+
export function RegisterEXT_texture_avif(): void;
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1730
|
+
* Import "./EXT_texture_avif.pure" for tree-shakeable, side-effect-free usage.
|
|
1731
|
+
*/
|
|
1449
1732
|
|
|
1450
1733
|
|
|
1451
1734
|
/**
|
|
@@ -1481,6 +1764,17 @@ declare namespace BABYLON {
|
|
|
1481
1764
|
postExportNodeAsync(context: string, node: Nullable<BABYLON.GLTF2.INode>, babylonNode: Node, nodeMap: Map<Node, number>, convertToRightHanded: boolean, bufferManager: BufferManager): Promise<Nullable<BABYLON.GLTF2.INode>>;
|
|
1482
1765
|
private _buildAccessor;
|
|
1483
1766
|
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Registers the EXT_mesh_gpu_instancing glTF serializer extension with the {@link GLTFExporter}.
|
|
1769
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1770
|
+
*/
|
|
1771
|
+
export function RegisterEXT_mesh_gpu_instancing(): void;
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1776
|
+
* Import "./EXT_mesh_gpu_instancing.pure" for tree-shakeable, side-effect-free usage.
|
|
1777
|
+
*/
|
|
1484
1778
|
|
|
1485
1779
|
|
|
1486
1780
|
/**
|
|
@@ -1517,6 +1811,17 @@ declare namespace BABYLON {
|
|
|
1517
1811
|
*/
|
|
1518
1812
|
postExportNodeAsync(context: string, node: BABYLON.GLTF2.INode, babylonNode: Node, nodeMap: Map<Node, number>, convertToRightHanded: boolean): Promise<Nullable<BABYLON.GLTF2.INode>>;
|
|
1519
1813
|
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Registers the EXT_lights_area glTF serializer extension with the {@link GLTFExporter}.
|
|
1816
|
+
* Safe to call multiple times; only the first call has an effect.
|
|
1817
|
+
*/
|
|
1818
|
+
export function RegisterEXT_lights_area(): void;
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Re-exports the pure implementation and applies the runtime registration side effect.
|
|
1823
|
+
* Import "./EXT_lights_area.pure" for tree-shakeable, side-effect-free usage.
|
|
1824
|
+
*/
|
|
1520
1825
|
|
|
1521
1826
|
|
|
1522
1827
|
/**
|
|
@@ -1569,6 +1874,12 @@ declare namespace BABYLON {
|
|
|
1569
1874
|
export function USDZExportAsync(scene: Scene, options: Partial<IUSDZExportOptions>, meshPredicate?: (m: Mesh) => boolean): Promise<Uint8Array>;
|
|
1570
1875
|
|
|
1571
1876
|
|
|
1877
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
1572
1883
|
|
|
1573
1884
|
|
|
1574
1885
|
/**
|
|
@@ -1595,6 +1906,9 @@ declare namespace BABYLON {
|
|
|
1595
1906
|
|
|
1596
1907
|
|
|
1597
1908
|
|
|
1909
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
1910
|
+
|
|
1911
|
+
|
|
1598
1912
|
|
|
1599
1913
|
|
|
1600
1914
|
export class BVHExporter {
|
|
@@ -1611,6 +1925,9 @@ declare namespace BABYLON {
|
|
|
1611
1925
|
}
|
|
1612
1926
|
|
|
1613
1927
|
|
|
1928
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
1929
|
+
|
|
1930
|
+
|
|
1614
1931
|
|
|
1615
1932
|
|
|
1616
1933
|
/**
|
|
@@ -1753,6 +2070,9 @@ declare namespace BABYLON {
|
|
|
1753
2070
|
}
|
|
1754
2071
|
|
|
1755
2072
|
|
|
2073
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2074
|
+
|
|
2075
|
+
|
|
1756
2076
|
|
|
1757
2077
|
|
|
1758
2078
|
/**
|
|
@@ -2127,6 +2447,12 @@ declare namespace BABYLON {
|
|
|
2127
2447
|
}
|
|
2128
2448
|
|
|
2129
2449
|
|
|
2450
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
|
|
2455
|
+
/** Pure barrel — re-exports only side-effect-free modules */
|
|
2130
2456
|
|
|
2131
2457
|
|
|
2132
2458
|
|