babylonjs-serializers 8.29.0 → 8.29.2
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.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +26 -1
- package/babylonjs.serializers.js +1 -1
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +58 -2
- package/package.json +3 -3
|
@@ -433,6 +433,7 @@ declare module BABYLON {
|
|
|
433
433
|
readonly _materialNeedsUVsSet: Set<Material>;
|
|
434
434
|
private static readonly _ExtensionNames;
|
|
435
435
|
private static readonly _ExtensionFactories;
|
|
436
|
+
private static readonly _ExtensionOrders;
|
|
436
437
|
private _ApplyExtension;
|
|
437
438
|
private _ApplyExtensions;
|
|
438
439
|
_extensionsPostExportNodeAsync(context: string, node: BABYLON.GLTF2.INode, babylonNode: Node, nodeMap: Map<Node, number>, convertToRightHanded: boolean): Promise<Nullable<BABYLON.GLTF2.INode>>;
|
|
@@ -454,7 +455,7 @@ declare module BABYLON {
|
|
|
454
455
|
constructor(babylonScene?: Nullable<Scene>, options?: IExportOptions);
|
|
455
456
|
dispose(): void;
|
|
456
457
|
get options(): Required<IExportOptions>;
|
|
457
|
-
static RegisterExtension(name: string, factory: (exporter: GLTFExporter) => IGLTFExporterExtensionV2): void;
|
|
458
|
+
static RegisterExtension(name: string, factory: (exporter: GLTFExporter) => IGLTFExporterExtensionV2, order?: number): void;
|
|
458
459
|
static UnregisterExtension(name: string): boolean;
|
|
459
460
|
private _generateJSON;
|
|
460
461
|
generateGLTFAsync(glTFPrefix: string): Promise<GLTFData>;
|
|
@@ -1146,6 +1147,30 @@ declare module BABYLON {
|
|
|
1146
1147
|
}
|
|
1147
1148
|
|
|
1148
1149
|
|
|
1150
|
+
/**
|
|
1151
|
+
* @internal
|
|
1152
|
+
*/
|
|
1153
|
+
export class KHR_materials_clearcoat_ior implements IGLTFExporterExtensionV2 {
|
|
1154
|
+
/** Name of this extension */
|
|
1155
|
+
readonly name = "KHR_materials_clearcoat_ior";
|
|
1156
|
+
/** Defines whether this extension is enabled */
|
|
1157
|
+
enabled: boolean;
|
|
1158
|
+
/** Defines whether this extension is required */
|
|
1159
|
+
required: boolean;
|
|
1160
|
+
private _exporter;
|
|
1161
|
+
private _wasUsed;
|
|
1162
|
+
/**
|
|
1163
|
+
* @param exporter The glTF exporter
|
|
1164
|
+
*/
|
|
1165
|
+
constructor(exporter: GLTFExporter);
|
|
1166
|
+
/** @internal */
|
|
1167
|
+
dispose(): void;
|
|
1168
|
+
/** @internal */
|
|
1169
|
+
get wasUsed(): boolean;
|
|
1170
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
|
|
1149
1174
|
/**
|
|
1150
1175
|
* @internal
|
|
1151
1176
|
*/
|