babylonjs-serializers 7.2.3 → 7.3.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.
@@ -113,6 +113,44 @@ declare module BABYLON {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ * [Proposed Specification](https://github.com/KhronosGroup/glTF/pull/1825)
118
+ * !!! Experimental Extension Subject to Changes !!!
119
+ */
120
+ export class KHR_materials_diffuse_transmission implements IGLTFExporterExtensionV2 {
121
+ /** Name of this extension */
122
+ readonly name = "KHR_materials_diffuse_transmission";
123
+ /** Defines whether this extension is enabled */
124
+ enabled: boolean;
125
+ /** Defines whether this extension is required */
126
+ required: boolean;
127
+ private _exporter;
128
+ private _wasUsed;
129
+ constructor(exporter: _Exporter);
130
+ dispose(): void;
131
+ /** @internal */
132
+ get wasUsed(): boolean;
133
+ /**
134
+ * After exporting a material, deal with additional textures
135
+ * @param context GLTF context of the material
136
+ * @param node exported GLTF node
137
+ * @param babylonMaterial corresponding babylon material
138
+ * @returns array of additional textures to export
139
+ */
140
+ postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
141
+ private _isExtensionEnabled;
142
+ private _hasTexturesExtension;
143
+ /**
144
+ * After exporting a material
145
+ * @param context GLTF context of the material
146
+ * @param node exported GLTF node
147
+ * @param babylonMaterial corresponding babylon material
148
+ * @returns promise that resolves with the updated node
149
+ */
150
+ postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
151
+ }
152
+
153
+
116
154
  /**
117
155
  * [Specification](https://github.com/KhronosGroup/glTF/blob/87bd64a7f5e23c84b6aef2e6082069583ed0ddb4/extensions/2.0/Khronos/KHR_materials_dispersion/README.md)
118
156
  * @experimental