babylonjs-serializers 5.0.3 → 5.2.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 +203 -4
- 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 +44 -0
- package/babylonjs.serializers.js +209 -4
- 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 +102 -0
- package/package.json +3 -3
|
@@ -3,8 +3,10 @@ declare module "babylonjs-serializers/glTF/2.0/Extensions/index" {
|
|
|
3
3
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_texture_transform";
|
|
4
4
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_lights_punctual";
|
|
5
5
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_clearcoat";
|
|
6
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_iridescence";
|
|
6
7
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_sheen";
|
|
7
8
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_unlit";
|
|
9
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_specular";
|
|
8
10
|
|
|
9
11
|
}
|
|
10
12
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_lights_punctual" {
|
|
@@ -77,6 +79,33 @@ export class KHR_materials_clearcoat implements IGLTFExporterExtensionV2 {
|
|
|
77
79
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
}
|
|
83
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_iridescence" {
|
|
84
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
85
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
86
|
+
import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
87
|
+
import { Material } from "babylonjs/Materials/material";
|
|
88
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
89
|
+
/**
|
|
90
|
+
* @hidden
|
|
91
|
+
*/
|
|
92
|
+
export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
93
|
+
/** Name of this extension */
|
|
94
|
+
readonly name: string;
|
|
95
|
+
/** Defines whether this extension is enabled */
|
|
96
|
+
enabled: boolean;
|
|
97
|
+
/** Defines whether this extension is required */
|
|
98
|
+
required: boolean;
|
|
99
|
+
private _exporter;
|
|
100
|
+
private _wasUsed;
|
|
101
|
+
constructor(exporter: _Exporter);
|
|
102
|
+
dispose(): void;
|
|
103
|
+
/** @hidden */
|
|
104
|
+
get wasUsed(): boolean;
|
|
105
|
+
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
106
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
107
|
+
}
|
|
108
|
+
|
|
80
109
|
}
|
|
81
110
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_sheen" {
|
|
82
111
|
import { IMaterial } from "babylonjs-gltf2interface";
|
|
@@ -104,6 +133,35 @@ export class KHR_materials_sheen implements IGLTFExporterExtensionV2 {
|
|
|
104
133
|
postExportMaterialAsync(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
105
134
|
}
|
|
106
135
|
|
|
136
|
+
}
|
|
137
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_specular" {
|
|
138
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
139
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
140
|
+
import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
141
|
+
import { Material } from "babylonjs/Materials/material";
|
|
142
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
143
|
+
/**
|
|
144
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)
|
|
145
|
+
*/
|
|
146
|
+
export class KHR_materials_specular implements IGLTFExporterExtensionV2 {
|
|
147
|
+
/** Name of this extension */
|
|
148
|
+
readonly name: string;
|
|
149
|
+
/** Defines whether this extension is enabled */
|
|
150
|
+
enabled: boolean;
|
|
151
|
+
/** Defines whether this extension is required */
|
|
152
|
+
required: boolean;
|
|
153
|
+
private _exporter;
|
|
154
|
+
private _wasUsed;
|
|
155
|
+
constructor(exporter: _Exporter);
|
|
156
|
+
dispose(): void;
|
|
157
|
+
/** @hidden */
|
|
158
|
+
get wasUsed(): boolean;
|
|
159
|
+
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
160
|
+
private _isExtensionEnabled;
|
|
161
|
+
private _hasTexturesExtension;
|
|
162
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
163
|
+
}
|
|
164
|
+
|
|
107
165
|
}
|
|
108
166
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_unlit" {
|
|
109
167
|
import { IMaterial } from "babylonjs-gltf2interface";
|
|
@@ -1497,6 +1555,27 @@ declare module BABYLON {
|
|
|
1497
1555
|
}
|
|
1498
1556
|
|
|
1499
1557
|
|
|
1558
|
+
/**
|
|
1559
|
+
* @hidden
|
|
1560
|
+
*/
|
|
1561
|
+
export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
1562
|
+
/** Name of this extension */
|
|
1563
|
+
readonly name = "KHR_materials_iridescence";
|
|
1564
|
+
/** Defines whether this extension is enabled */
|
|
1565
|
+
enabled: boolean;
|
|
1566
|
+
/** Defines whether this extension is required */
|
|
1567
|
+
required: boolean;
|
|
1568
|
+
private _exporter;
|
|
1569
|
+
private _wasUsed;
|
|
1570
|
+
constructor(exporter: _Exporter);
|
|
1571
|
+
dispose(): void;
|
|
1572
|
+
/** @hidden */
|
|
1573
|
+
get wasUsed(): boolean;
|
|
1574
|
+
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1575
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
|
|
1500
1579
|
/**
|
|
1501
1580
|
* @hidden
|
|
1502
1581
|
*/
|
|
@@ -1518,6 +1597,29 @@ declare module BABYLON {
|
|
|
1518
1597
|
}
|
|
1519
1598
|
|
|
1520
1599
|
|
|
1600
|
+
/**
|
|
1601
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)
|
|
1602
|
+
*/
|
|
1603
|
+
export class KHR_materials_specular implements IGLTFExporterExtensionV2 {
|
|
1604
|
+
/** Name of this extension */
|
|
1605
|
+
readonly name = "KHR_materials_specular";
|
|
1606
|
+
/** Defines whether this extension is enabled */
|
|
1607
|
+
enabled: boolean;
|
|
1608
|
+
/** Defines whether this extension is required */
|
|
1609
|
+
required: boolean;
|
|
1610
|
+
private _exporter;
|
|
1611
|
+
private _wasUsed;
|
|
1612
|
+
constructor(exporter: _Exporter);
|
|
1613
|
+
dispose(): void;
|
|
1614
|
+
/** @hidden */
|
|
1615
|
+
get wasUsed(): boolean;
|
|
1616
|
+
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1617
|
+
private _isExtensionEnabled;
|
|
1618
|
+
private _hasTexturesExtension;
|
|
1619
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
|
|
1521
1623
|
/**
|
|
1522
1624
|
* @hidden
|
|
1523
1625
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-serializers",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.2.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.0
|
|
18
|
-
"babylonjs-gltf2interface": "^5.0
|
|
17
|
+
"babylonjs": "^5.2.0",
|
|
18
|
+
"babylonjs-gltf2interface": "^5.2.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|