Class KHR_materials_diffuse_transmission
Implements
- IGLTFExporterExtensionV2
Constructors
constructor
-
new KHR_materials_diffuse_transmission(
exporter: GLTFExporter,
): KHR_materials_diffuse_transmissionParameters
- exporter: GLTFExporter
Returns KHR_materials_diffuse_transmission
Properties
enabled
enabled: boolean = true
Defines whether this extension is enabled
Readonlyname
name: "KHR_materials_diffuse_transmission" = NAME
Name of this extension
required
required: boolean = false
Defines whether this extension is required
Methods
dispose
-
Returns void
Optionalpost Export Material Additional Textures Async
-
postExportMaterialAdditionalTexturesAsync?(
context: string,
node: IMaterial,
babylonMaterial: Material,
): Promise<BaseTexture[]>After exporting a material, deal with additional textures
Parameters
- context: string
GLTF context of the material
- node: IMaterial
exported GLTF node
- babylonMaterial: Material
corresponding babylon material
Returns Promise<BaseTexture[]>
array of additional textures to export
- context: string
Optionalpost Export Material Async
-
postExportMaterialAsync?(
context: string,
node: IMaterial,
babylonMaterial: Material,
): Promise<IMaterial>After exporting a material
Parameters
- context: string
GLTF context of the material
- node: IMaterial
exported GLTF node
- babylonMaterial: Material
corresponding babylon material
Returns Promise<IMaterial>
promise that resolves with the updated node
- context: string
Proposed Specification !!! Experimental Extension Subject to Changes !!!