babylonjs-serializers 5.24.0 → 5.26.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 +29 -32
- package/babylon.glTF2Serializer.js.map +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +32 -35
- package/babylonjs.serializers.js +29 -32
- package/babylonjs.serializers.js.map +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +64 -70
- package/package.json +3 -3
|
@@ -21,7 +21,7 @@ export class EXT_mesh_gpu_instancing implements IGLTFExporterExtensionV2 {
|
|
|
21
21
|
private _wasUsed;
|
|
22
22
|
constructor(exporter: _Exporter);
|
|
23
23
|
dispose(): void;
|
|
24
|
-
/** @
|
|
24
|
+
/** @internal */
|
|
25
25
|
get wasUsed(): boolean;
|
|
26
26
|
postExportNodeAsync?(context: string, node: Nullable<INode>, babylonNode: Node, nodeMap?: {
|
|
27
27
|
[key: number]: number;
|
|
@@ -64,15 +64,14 @@ export class KHR_lights_punctual implements IGLTFExporterExtensionV2 {
|
|
|
64
64
|
private _exporter;
|
|
65
65
|
private _lights;
|
|
66
66
|
/**
|
|
67
|
-
* @
|
|
68
|
-
* @hidden
|
|
67
|
+
* @internal
|
|
69
68
|
*/
|
|
70
69
|
constructor(exporter: _Exporter);
|
|
71
|
-
/** @
|
|
70
|
+
/** @internal */
|
|
72
71
|
dispose(): void;
|
|
73
|
-
/** @
|
|
72
|
+
/** @internal */
|
|
74
73
|
get wasUsed(): boolean;
|
|
75
|
-
/** @
|
|
74
|
+
/** @internal */
|
|
76
75
|
onExporting(): void;
|
|
77
76
|
/**
|
|
78
77
|
* Define this method to modify the default behavior when exporting a node
|
|
@@ -95,7 +94,7 @@ import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
|
95
94
|
import { Material } from "babylonjs/Materials/material";
|
|
96
95
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
97
96
|
/**
|
|
98
|
-
* @
|
|
97
|
+
* @internal
|
|
99
98
|
*/
|
|
100
99
|
export class KHR_materials_clearcoat implements IGLTFExporterExtensionV2 {
|
|
101
100
|
/** Name of this extension */
|
|
@@ -108,7 +107,7 @@ export class KHR_materials_clearcoat implements IGLTFExporterExtensionV2 {
|
|
|
108
107
|
private _wasUsed;
|
|
109
108
|
constructor(exporter: _Exporter);
|
|
110
109
|
dispose(): void;
|
|
111
|
-
/** @
|
|
110
|
+
/** @internal */
|
|
112
111
|
get wasUsed(): boolean;
|
|
113
112
|
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
114
113
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
@@ -132,7 +131,7 @@ export class KHR_materials_ior implements IGLTFExporterExtensionV2 {
|
|
|
132
131
|
private _wasUsed;
|
|
133
132
|
constructor();
|
|
134
133
|
dispose(): void;
|
|
135
|
-
/** @
|
|
134
|
+
/** @internal */
|
|
136
135
|
get wasUsed(): boolean;
|
|
137
136
|
private _isExtensionEnabled;
|
|
138
137
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
@@ -146,7 +145,7 @@ import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
|
146
145
|
import { Material } from "babylonjs/Materials/material";
|
|
147
146
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
148
147
|
/**
|
|
149
|
-
* @
|
|
148
|
+
* @internal
|
|
150
149
|
*/
|
|
151
150
|
export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
152
151
|
/** Name of this extension */
|
|
@@ -159,7 +158,7 @@ export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
|
159
158
|
private _wasUsed;
|
|
160
159
|
constructor(exporter: _Exporter);
|
|
161
160
|
dispose(): void;
|
|
162
|
-
/** @
|
|
161
|
+
/** @internal */
|
|
163
162
|
get wasUsed(): boolean;
|
|
164
163
|
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
165
164
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
@@ -173,7 +172,7 @@ import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
|
173
172
|
import { Material } from "babylonjs/Materials/material";
|
|
174
173
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
175
174
|
/**
|
|
176
|
-
* @
|
|
175
|
+
* @internal
|
|
177
176
|
*/
|
|
178
177
|
export class KHR_materials_sheen implements IGLTFExporterExtensionV2 {
|
|
179
178
|
/** Name of this extension */
|
|
@@ -186,7 +185,7 @@ export class KHR_materials_sheen implements IGLTFExporterExtensionV2 {
|
|
|
186
185
|
private _exporter;
|
|
187
186
|
constructor(exporter: _Exporter);
|
|
188
187
|
dispose(): void;
|
|
189
|
-
/** @
|
|
188
|
+
/** @internal */
|
|
190
189
|
get wasUsed(): boolean;
|
|
191
190
|
postExportMaterialAdditionalTextures(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
192
191
|
postExportMaterialAsync(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
@@ -213,7 +212,7 @@ export class KHR_materials_specular implements IGLTFExporterExtensionV2 {
|
|
|
213
212
|
private _wasUsed;
|
|
214
213
|
constructor(exporter: _Exporter);
|
|
215
214
|
dispose(): void;
|
|
216
|
-
/** @
|
|
215
|
+
/** @internal */
|
|
217
216
|
get wasUsed(): boolean;
|
|
218
217
|
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
219
218
|
private _isExtensionEnabled;
|
|
@@ -242,7 +241,7 @@ export class KHR_materials_transmission implements IGLTFExporterExtensionV2 {
|
|
|
242
241
|
private _wasUsed;
|
|
243
242
|
constructor(exporter: _Exporter);
|
|
244
243
|
dispose(): void;
|
|
245
|
-
/** @
|
|
244
|
+
/** @internal */
|
|
246
245
|
get wasUsed(): boolean;
|
|
247
246
|
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
248
247
|
private _isExtensionEnabled;
|
|
@@ -256,7 +255,7 @@ import { IMaterial } from "babylonjs-gltf2interface";
|
|
|
256
255
|
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
257
256
|
import { Material } from "babylonjs/Materials/material";
|
|
258
257
|
/**
|
|
259
|
-
* @
|
|
258
|
+
* @internal
|
|
260
259
|
*/
|
|
261
260
|
export class KHR_materials_unlit implements IGLTFExporterExtensionV2 {
|
|
262
261
|
/** Name of this extension */
|
|
@@ -267,7 +266,7 @@ export class KHR_materials_unlit implements IGLTFExporterExtensionV2 {
|
|
|
267
266
|
required: boolean;
|
|
268
267
|
private _wasUsed;
|
|
269
268
|
constructor();
|
|
270
|
-
/** @
|
|
269
|
+
/** @internal */
|
|
271
270
|
get wasUsed(): boolean;
|
|
272
271
|
dispose(): void;
|
|
273
272
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
@@ -294,7 +293,7 @@ export class KHR_materials_volume implements IGLTFExporterExtensionV2 {
|
|
|
294
293
|
private _wasUsed;
|
|
295
294
|
constructor(exporter: _Exporter);
|
|
296
295
|
dispose(): void;
|
|
297
|
-
/** @
|
|
296
|
+
/** @internal */
|
|
298
297
|
get wasUsed(): boolean;
|
|
299
298
|
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
300
299
|
private _isExtensionEnabled;
|
|
@@ -309,7 +308,7 @@ import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
|
309
308
|
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
310
309
|
import "babylonjs-serializers/glTF/2.0/shaders/textureTransform.fragment";
|
|
311
310
|
/**
|
|
312
|
-
* @
|
|
311
|
+
* @internal
|
|
313
312
|
*/
|
|
314
313
|
export class KHR_texture_transform implements IGLTFExporterExtensionV2 {
|
|
315
314
|
private _recordedTextures;
|
|
@@ -323,7 +322,7 @@ export class KHR_texture_transform implements IGLTFExporterExtensionV2 {
|
|
|
323
322
|
private _wasUsed;
|
|
324
323
|
constructor();
|
|
325
324
|
dispose(): void;
|
|
326
|
-
/** @
|
|
325
|
+
/** @internal */
|
|
327
326
|
get wasUsed(): boolean;
|
|
328
327
|
postExportTexture?(context: string, textureInfo: ITextureInfo, babylonTexture: Texture): void;
|
|
329
328
|
preExportTextureAsync(context: string, babylonTexture: Texture): Promise<Texture>;
|
|
@@ -345,7 +344,7 @@ import { Animation } from "babylonjs/Animations/animation";
|
|
|
345
344
|
import { Scene } from "babylonjs/scene";
|
|
346
345
|
import { _BinaryWriter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
347
346
|
/**
|
|
348
|
-
* @
|
|
347
|
+
* @internal
|
|
349
348
|
* Interface to store animation data.
|
|
350
349
|
*/
|
|
351
350
|
export interface _IAnimationData {
|
|
@@ -371,7 +370,7 @@ export interface _IAnimationData {
|
|
|
371
370
|
inputsMax: number;
|
|
372
371
|
}
|
|
373
372
|
/**
|
|
374
|
-
* @
|
|
373
|
+
* @internal
|
|
375
374
|
*/
|
|
376
375
|
export interface _IAnimationInfo {
|
|
377
376
|
/**
|
|
@@ -388,7 +387,7 @@ export interface _IAnimationInfo {
|
|
|
388
387
|
useQuaternion: boolean;
|
|
389
388
|
}
|
|
390
389
|
/**
|
|
391
|
-
* @
|
|
390
|
+
* @internal
|
|
392
391
|
* Utility class for generating glTF animation data from BabylonJS.
|
|
393
392
|
*/
|
|
394
393
|
export class _GLTFAnimation {
|
|
@@ -591,7 +590,7 @@ import { IExportOptions } from "babylonjs-serializers/glTF/2.0/glTFSerializer";
|
|
|
591
590
|
import { GLTFData } from "babylonjs-serializers/glTF/2.0/glTFData";
|
|
592
591
|
/**
|
|
593
592
|
* Converts Babylon Scene into glTF 2.0.
|
|
594
|
-
* @
|
|
593
|
+
* @internal
|
|
595
594
|
*/
|
|
596
595
|
export class _Exporter {
|
|
597
596
|
/**
|
|
@@ -854,9 +853,7 @@ export class _Exporter {
|
|
|
854
853
|
*/
|
|
855
854
|
private _getPadding;
|
|
856
855
|
/**
|
|
857
|
-
* @
|
|
858
|
-
* @param dispose
|
|
859
|
-
* @hidden
|
|
856
|
+
* @internal
|
|
860
857
|
*/
|
|
861
858
|
_generateGLBAsync(glTFPrefix: string, dispose?: boolean): Promise<GLTFData>;
|
|
862
859
|
/**
|
|
@@ -959,7 +956,7 @@ export class _Exporter {
|
|
|
959
956
|
private _createSkinsAsync;
|
|
960
957
|
}
|
|
961
958
|
/**
|
|
962
|
-
* @
|
|
959
|
+
* @internal
|
|
963
960
|
*
|
|
964
961
|
* Stores glTF binary data. If the array buffer byte length is exceeded, it doubles in size dynamically
|
|
965
962
|
*/
|
|
@@ -1055,11 +1052,11 @@ import { _BinaryWriter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
|
1055
1052
|
import { IGLTFExporterExtension } from "babylonjs-serializers/glTF/glTFFileExporter";
|
|
1056
1053
|
import { Material } from "babylonjs/Materials/material";
|
|
1057
1054
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
1058
|
-
/** @
|
|
1055
|
+
/** @internal */
|
|
1059
1056
|
export var __IGLTFExporterExtensionV2: number;
|
|
1060
1057
|
/**
|
|
1061
1058
|
* Interface for a glTF exporter extension
|
|
1062
|
-
* @
|
|
1059
|
+
* @internal
|
|
1063
1060
|
*/
|
|
1064
1061
|
export interface IGLTFExporterExtensionV2 extends IGLTFExporterExtension, IDisposable {
|
|
1065
1062
|
/**
|
|
@@ -1132,7 +1129,7 @@ import { StandardMaterial } from "babylonjs/Materials/standardMaterial";
|
|
|
1132
1129
|
import { PBRBaseMaterial } from "babylonjs/Materials/PBR/pbrBaseMaterial";
|
|
1133
1130
|
/**
|
|
1134
1131
|
* Utility methods for working with glTF material conversion properties. This class should only be used internally
|
|
1135
|
-
* @
|
|
1132
|
+
* @internal
|
|
1136
1133
|
*/
|
|
1137
1134
|
export class _GLTFMaterialExporter {
|
|
1138
1135
|
/**
|
|
@@ -1394,7 +1391,7 @@ import { FloatArray, Nullable } from "babylonjs/types";
|
|
|
1394
1391
|
import { Vector4, Quaternion } from "babylonjs/Maths/math.vector";
|
|
1395
1392
|
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
1396
1393
|
/**
|
|
1397
|
-
* @
|
|
1394
|
+
* @internal
|
|
1398
1395
|
*/
|
|
1399
1396
|
export class _GLTFUtilities {
|
|
1400
1397
|
/**
|
|
@@ -1501,7 +1498,7 @@ export * from "babylonjs-serializers/glTF/2.0/Extensions/index";
|
|
|
1501
1498
|
|
|
1502
1499
|
}
|
|
1503
1500
|
declare module "babylonjs-serializers/glTF/2.0/shaders/textureTransform.fragment" {
|
|
1504
|
-
/** @
|
|
1501
|
+
/** @internal */
|
|
1505
1502
|
export const textureTransformPixelShader: {
|
|
1506
1503
|
name: string;
|
|
1507
1504
|
shader: string;
|
|
@@ -1509,11 +1506,11 @@ export const textureTransformPixelShader: {
|
|
|
1509
1506
|
|
|
1510
1507
|
}
|
|
1511
1508
|
declare module "babylonjs-serializers/glTF/glTFFileExporter" {
|
|
1512
|
-
/** @
|
|
1509
|
+
/** @internal */
|
|
1513
1510
|
export var __IGLTFExporterExtension: number;
|
|
1514
1511
|
/**
|
|
1515
1512
|
* Interface for extending the exporter
|
|
1516
|
-
* @
|
|
1513
|
+
* @internal
|
|
1517
1514
|
*/
|
|
1518
1515
|
export interface IGLTFExporterExtension {
|
|
1519
1516
|
/**
|
|
@@ -1635,7 +1632,7 @@ declare module BABYLON {
|
|
|
1635
1632
|
private _wasUsed;
|
|
1636
1633
|
constructor(exporter: _Exporter);
|
|
1637
1634
|
dispose(): void;
|
|
1638
|
-
/** @
|
|
1635
|
+
/** @internal */
|
|
1639
1636
|
get wasUsed(): boolean;
|
|
1640
1637
|
postExportNodeAsync?(context: string, node: Nullable<BABYLON.GLTF2.INode>, babylonNode: Node, nodeMap?: {
|
|
1641
1638
|
[key: number]: number;
|
|
@@ -1660,15 +1657,14 @@ declare module BABYLON {
|
|
|
1660
1657
|
private _exporter;
|
|
1661
1658
|
private _lights;
|
|
1662
1659
|
/**
|
|
1663
|
-
* @
|
|
1664
|
-
* @hidden
|
|
1660
|
+
* @internal
|
|
1665
1661
|
*/
|
|
1666
1662
|
constructor(exporter: _Exporter);
|
|
1667
|
-
/** @
|
|
1663
|
+
/** @internal */
|
|
1668
1664
|
dispose(): void;
|
|
1669
|
-
/** @
|
|
1665
|
+
/** @internal */
|
|
1670
1666
|
get wasUsed(): boolean;
|
|
1671
|
-
/** @
|
|
1667
|
+
/** @internal */
|
|
1672
1668
|
onExporting(): void;
|
|
1673
1669
|
/**
|
|
1674
1670
|
* Define this method to modify the default behavior when exporting a node
|
|
@@ -1685,7 +1681,7 @@ declare module BABYLON {
|
|
|
1685
1681
|
|
|
1686
1682
|
|
|
1687
1683
|
/**
|
|
1688
|
-
* @
|
|
1684
|
+
* @internal
|
|
1689
1685
|
*/
|
|
1690
1686
|
export class KHR_materials_clearcoat implements IGLTFExporterExtensionV2 {
|
|
1691
1687
|
/** Name of this extension */
|
|
@@ -1698,7 +1694,7 @@ declare module BABYLON {
|
|
|
1698
1694
|
private _wasUsed;
|
|
1699
1695
|
constructor(exporter: _Exporter);
|
|
1700
1696
|
dispose(): void;
|
|
1701
|
-
/** @
|
|
1697
|
+
/** @internal */
|
|
1702
1698
|
get wasUsed(): boolean;
|
|
1703
1699
|
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1704
1700
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
@@ -1718,7 +1714,7 @@ declare module BABYLON {
|
|
|
1718
1714
|
private _wasUsed;
|
|
1719
1715
|
constructor();
|
|
1720
1716
|
dispose(): void;
|
|
1721
|
-
/** @
|
|
1717
|
+
/** @internal */
|
|
1722
1718
|
get wasUsed(): boolean;
|
|
1723
1719
|
private _isExtensionEnabled;
|
|
1724
1720
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
@@ -1726,7 +1722,7 @@ declare module BABYLON {
|
|
|
1726
1722
|
|
|
1727
1723
|
|
|
1728
1724
|
/**
|
|
1729
|
-
* @
|
|
1725
|
+
* @internal
|
|
1730
1726
|
*/
|
|
1731
1727
|
export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
1732
1728
|
/** Name of this extension */
|
|
@@ -1739,7 +1735,7 @@ declare module BABYLON {
|
|
|
1739
1735
|
private _wasUsed;
|
|
1740
1736
|
constructor(exporter: _Exporter);
|
|
1741
1737
|
dispose(): void;
|
|
1742
|
-
/** @
|
|
1738
|
+
/** @internal */
|
|
1743
1739
|
get wasUsed(): boolean;
|
|
1744
1740
|
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1745
1741
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
@@ -1747,7 +1743,7 @@ declare module BABYLON {
|
|
|
1747
1743
|
|
|
1748
1744
|
|
|
1749
1745
|
/**
|
|
1750
|
-
* @
|
|
1746
|
+
* @internal
|
|
1751
1747
|
*/
|
|
1752
1748
|
export class KHR_materials_sheen implements IGLTFExporterExtensionV2 {
|
|
1753
1749
|
/** Name of this extension */
|
|
@@ -1760,7 +1756,7 @@ declare module BABYLON {
|
|
|
1760
1756
|
private _exporter;
|
|
1761
1757
|
constructor(exporter: _Exporter);
|
|
1762
1758
|
dispose(): void;
|
|
1763
|
-
/** @
|
|
1759
|
+
/** @internal */
|
|
1764
1760
|
get wasUsed(): boolean;
|
|
1765
1761
|
postExportMaterialAdditionalTextures(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1766
1762
|
postExportMaterialAsync(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
@@ -1781,7 +1777,7 @@ declare module BABYLON {
|
|
|
1781
1777
|
private _wasUsed;
|
|
1782
1778
|
constructor(exporter: _Exporter);
|
|
1783
1779
|
dispose(): void;
|
|
1784
|
-
/** @
|
|
1780
|
+
/** @internal */
|
|
1785
1781
|
get wasUsed(): boolean;
|
|
1786
1782
|
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1787
1783
|
private _isExtensionEnabled;
|
|
@@ -1804,7 +1800,7 @@ declare module BABYLON {
|
|
|
1804
1800
|
private _wasUsed;
|
|
1805
1801
|
constructor(exporter: _Exporter);
|
|
1806
1802
|
dispose(): void;
|
|
1807
|
-
/** @
|
|
1803
|
+
/** @internal */
|
|
1808
1804
|
get wasUsed(): boolean;
|
|
1809
1805
|
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1810
1806
|
private _isExtensionEnabled;
|
|
@@ -1814,7 +1810,7 @@ declare module BABYLON {
|
|
|
1814
1810
|
|
|
1815
1811
|
|
|
1816
1812
|
/**
|
|
1817
|
-
* @
|
|
1813
|
+
* @internal
|
|
1818
1814
|
*/
|
|
1819
1815
|
export class KHR_materials_unlit implements IGLTFExporterExtensionV2 {
|
|
1820
1816
|
/** Name of this extension */
|
|
@@ -1825,7 +1821,7 @@ declare module BABYLON {
|
|
|
1825
1821
|
required: boolean;
|
|
1826
1822
|
private _wasUsed;
|
|
1827
1823
|
constructor();
|
|
1828
|
-
/** @
|
|
1824
|
+
/** @internal */
|
|
1829
1825
|
get wasUsed(): boolean;
|
|
1830
1826
|
dispose(): void;
|
|
1831
1827
|
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
@@ -1846,7 +1842,7 @@ declare module BABYLON {
|
|
|
1846
1842
|
private _wasUsed;
|
|
1847
1843
|
constructor(exporter: _Exporter);
|
|
1848
1844
|
dispose(): void;
|
|
1849
|
-
/** @
|
|
1845
|
+
/** @internal */
|
|
1850
1846
|
get wasUsed(): boolean;
|
|
1851
1847
|
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1852
1848
|
private _isExtensionEnabled;
|
|
@@ -1856,7 +1852,7 @@ declare module BABYLON {
|
|
|
1856
1852
|
|
|
1857
1853
|
|
|
1858
1854
|
/**
|
|
1859
|
-
* @
|
|
1855
|
+
* @internal
|
|
1860
1856
|
*/
|
|
1861
1857
|
export class KHR_texture_transform implements IGLTFExporterExtensionV2 {
|
|
1862
1858
|
private _recordedTextures;
|
|
@@ -1870,7 +1866,7 @@ declare module BABYLON {
|
|
|
1870
1866
|
private _wasUsed;
|
|
1871
1867
|
constructor();
|
|
1872
1868
|
dispose(): void;
|
|
1873
|
-
/** @
|
|
1869
|
+
/** @internal */
|
|
1874
1870
|
get wasUsed(): boolean;
|
|
1875
1871
|
postExportTexture?(context: string, textureInfo: BABYLON.GLTF2.ITextureInfo, babylonTexture: Texture): void;
|
|
1876
1872
|
preExportTextureAsync(context: string, babylonTexture: Texture): Promise<Texture>;
|
|
@@ -1884,7 +1880,7 @@ declare module BABYLON {
|
|
|
1884
1880
|
|
|
1885
1881
|
|
|
1886
1882
|
/**
|
|
1887
|
-
* @
|
|
1883
|
+
* @internal
|
|
1888
1884
|
* Interface to store animation data.
|
|
1889
1885
|
*/
|
|
1890
1886
|
export interface _IAnimationData {
|
|
@@ -1910,7 +1906,7 @@ declare module BABYLON {
|
|
|
1910
1906
|
inputsMax: number;
|
|
1911
1907
|
}
|
|
1912
1908
|
/**
|
|
1913
|
-
* @
|
|
1909
|
+
* @internal
|
|
1914
1910
|
*/
|
|
1915
1911
|
export interface _IAnimationInfo {
|
|
1916
1912
|
/**
|
|
@@ -1927,7 +1923,7 @@ declare module BABYLON {
|
|
|
1927
1923
|
useQuaternion: boolean;
|
|
1928
1924
|
}
|
|
1929
1925
|
/**
|
|
1930
|
-
* @
|
|
1926
|
+
* @internal
|
|
1931
1927
|
* Utility class for generating glTF animation data from BabylonJS.
|
|
1932
1928
|
*/
|
|
1933
1929
|
export class _GLTFAnimation {
|
|
@@ -2112,7 +2108,7 @@ declare module BABYLON {
|
|
|
2112
2108
|
|
|
2113
2109
|
/**
|
|
2114
2110
|
* Converts Babylon Scene into glTF 2.0.
|
|
2115
|
-
* @
|
|
2111
|
+
* @internal
|
|
2116
2112
|
*/
|
|
2117
2113
|
export class _Exporter {
|
|
2118
2114
|
/**
|
|
@@ -2375,9 +2371,7 @@ declare module BABYLON {
|
|
|
2375
2371
|
*/
|
|
2376
2372
|
private _getPadding;
|
|
2377
2373
|
/**
|
|
2378
|
-
* @
|
|
2379
|
-
* @param dispose
|
|
2380
|
-
* @hidden
|
|
2374
|
+
* @internal
|
|
2381
2375
|
*/
|
|
2382
2376
|
_generateGLBAsync(glTFPrefix: string, dispose?: boolean): Promise<GLTFData>;
|
|
2383
2377
|
/**
|
|
@@ -2480,7 +2474,7 @@ declare module BABYLON {
|
|
|
2480
2474
|
private _createSkinsAsync;
|
|
2481
2475
|
}
|
|
2482
2476
|
/**
|
|
2483
|
-
* @
|
|
2477
|
+
* @internal
|
|
2484
2478
|
*
|
|
2485
2479
|
* Stores glTF binary data. If the array buffer byte length is exceeded, it doubles in size dynamically
|
|
2486
2480
|
*/
|
|
@@ -2565,11 +2559,11 @@ declare module BABYLON {
|
|
|
2565
2559
|
}
|
|
2566
2560
|
|
|
2567
2561
|
|
|
2568
|
-
/** @
|
|
2562
|
+
/** @internal */
|
|
2569
2563
|
export var __IGLTFExporterExtensionV2: number;
|
|
2570
2564
|
/**
|
|
2571
2565
|
* Interface for a glTF exporter extension
|
|
2572
|
-
* @
|
|
2566
|
+
* @internal
|
|
2573
2567
|
*/
|
|
2574
2568
|
export interface IGLTFExporterExtensionV2 extends IGLTFExporterExtension, IDisposable {
|
|
2575
2569
|
/**
|
|
@@ -2633,7 +2627,7 @@ declare module BABYLON {
|
|
|
2633
2627
|
|
|
2634
2628
|
/**
|
|
2635
2629
|
* Utility methods for working with glTF material conversion properties. This class should only be used internally
|
|
2636
|
-
* @
|
|
2630
|
+
* @internal
|
|
2637
2631
|
*/
|
|
2638
2632
|
export class _GLTFMaterialExporter {
|
|
2639
2633
|
/**
|
|
@@ -2884,7 +2878,7 @@ declare module BABYLON {
|
|
|
2884
2878
|
|
|
2885
2879
|
|
|
2886
2880
|
/**
|
|
2887
|
-
* @
|
|
2881
|
+
* @internal
|
|
2888
2882
|
*/
|
|
2889
2883
|
export class _GLTFUtilities {
|
|
2890
2884
|
/**
|
|
@@ -2981,18 +2975,18 @@ declare module BABYLON {
|
|
|
2981
2975
|
|
|
2982
2976
|
|
|
2983
2977
|
|
|
2984
|
-
/** @
|
|
2978
|
+
/** @internal */
|
|
2985
2979
|
export var textureTransformPixelShader: {
|
|
2986
2980
|
name: string;
|
|
2987
2981
|
shader: string;
|
|
2988
2982
|
};
|
|
2989
2983
|
|
|
2990
2984
|
|
|
2991
|
-
/** @
|
|
2985
|
+
/** @internal */
|
|
2992
2986
|
export var __IGLTFExporterExtension: number;
|
|
2993
2987
|
/**
|
|
2994
2988
|
* Interface for extending the exporter
|
|
2995
|
-
* @
|
|
2989
|
+
* @internal
|
|
2996
2990
|
*/
|
|
2997
2991
|
export interface IGLTFExporterExtension {
|
|
2998
2992
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-serializers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.0",
|
|
4
4
|
"main": "babylonjs.serializers.js",
|
|
5
5
|
"types": "babylonjs.serializers.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
18
|
-
"babylonjs-gltf2interface": "^5.
|
|
17
|
+
"babylonjs": "^5.26.0",
|
|
18
|
+
"babylonjs-gltf2interface": "^5.26.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|