API

Class KHR_materials_dispersionExperimental

Implements

  • IGLTFExporterExtensionV2
Index
enabled: boolean = true

Defines whether this extension is enabled

name: "KHR_materials_dispersion" = NAME

Name of this extension

required: boolean = false

Defines whether this extension is required

  • Experimental

    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, resolves with the material