babylonjs-serializers 8.46.2 → 8.47.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.glTF2Serializer.js +1 -1
- package/babylon.glTF2Serializer.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +63 -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 +138 -2
- package/package.json +4 -4
|
@@ -831,6 +831,43 @@ declare module BABYLON {
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
|
|
834
|
+
/**
|
|
835
|
+
* TODO: In-progress specification
|
|
836
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/7ea427ed55d44427e83c0a6d1c87068b1a4151c5/extensions/2.0/Khronos/KHR_materials_volume_scatter/README.md)
|
|
837
|
+
*/
|
|
838
|
+
export class KHR_materials_volume_scatter implements IGLTFExporterExtensionV2 {
|
|
839
|
+
/** Name of this extension */
|
|
840
|
+
readonly name = "KHR_materials_volume_scatter";
|
|
841
|
+
/** Defines whether this extension is enabled */
|
|
842
|
+
enabled: boolean;
|
|
843
|
+
/** Defines whether this extension is required */
|
|
844
|
+
required: boolean;
|
|
845
|
+
private _exporter;
|
|
846
|
+
private _wasUsed;
|
|
847
|
+
constructor(exporter: GLTFExporter);
|
|
848
|
+
dispose(): void;
|
|
849
|
+
/** @internal */
|
|
850
|
+
get wasUsed(): boolean;
|
|
851
|
+
/**
|
|
852
|
+
* After exporting a material, deal with additional textures
|
|
853
|
+
* @param context GLTF context of the material
|
|
854
|
+
* @param node exported GLTF node
|
|
855
|
+
* @param babylonMaterial corresponding babylon material
|
|
856
|
+
* @returns array of additional textures to export
|
|
857
|
+
*/
|
|
858
|
+
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
859
|
+
private _isExtensionEnabled;
|
|
860
|
+
/**
|
|
861
|
+
* After exporting a material
|
|
862
|
+
* @param context GLTF context of the material
|
|
863
|
+
* @param node exported GLTF node
|
|
864
|
+
* @param babylonMaterial corresponding babylon material
|
|
865
|
+
* @returns promise that resolves with the updated node
|
|
866
|
+
*/
|
|
867
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
|
|
834
871
|
/**
|
|
835
872
|
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_volume/README.md)
|
|
836
873
|
*/
|
|
@@ -913,7 +950,6 @@ declare module BABYLON {
|
|
|
913
950
|
*/
|
|
914
951
|
postExportMaterialAdditionalTexturesAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BaseTexture[]>;
|
|
915
952
|
private _isExtensionEnabled;
|
|
916
|
-
private _hasTexturesExtension;
|
|
917
953
|
/**
|
|
918
954
|
* After exporting a material
|
|
919
955
|
* @param context GLTF context of the material
|
|
@@ -984,6 +1020,32 @@ declare module BABYLON {
|
|
|
984
1020
|
}
|
|
985
1021
|
|
|
986
1022
|
|
|
1023
|
+
/**
|
|
1024
|
+
* TODO: Add link to specification. Specification still being drafted.
|
|
1025
|
+
* @experimental
|
|
1026
|
+
*/
|
|
1027
|
+
export class KHR_materials_openpbr implements IGLTFExporterExtensionV2 {
|
|
1028
|
+
/** Name of this extension */
|
|
1029
|
+
readonly name = "KHR_materials_openpbr";
|
|
1030
|
+
/** Defines whether this extension is enabled */
|
|
1031
|
+
enabled: boolean;
|
|
1032
|
+
/** Defines whether this extension is required */
|
|
1033
|
+
required: boolean;
|
|
1034
|
+
private _wasUsed;
|
|
1035
|
+
dispose(): void;
|
|
1036
|
+
/** @internal */
|
|
1037
|
+
get wasUsed(): boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* After exporting a material
|
|
1040
|
+
* @param context GLTF context of the material
|
|
1041
|
+
* @param node exported GLTF node
|
|
1042
|
+
* @param babylonMaterial corresponding babylon material
|
|
1043
|
+
* @returns promise that resolves with the updated node
|
|
1044
|
+
*/
|
|
1045
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
|
|
987
1049
|
/**
|
|
988
1050
|
* @internal
|
|
989
1051
|
*/
|