API

Class KHR_materials_openpbrExperimental

TODO: Add link to specification. Specification still being drafted.

Implements

  • IGLTFExporterExtensionV2
Index
enabled: boolean = true

Defines whether this extension is enabled

name: "KHR_materials_openpbr" = 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 that resolves with the updated node