API

Class KHR_materials_volume

Implements

  • IGLTFExporterExtensionV2
Index
enabled: boolean = true

Defines whether this extension is enabled

name: "KHR_materials_volume" = NAME

Name of this extension

required: boolean = false

Defines whether this extension is required

  • 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

  • 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