API

Function registerGLTFExtension

  • Registers a loader extension.

    Parameters

    • name: string

      The name of the loader extension.

    • isGLTFExtension: boolean

      If the loader extension is a glTF extension, then it will only be used for glTF files that use the corresponding glTF extension. Otherwise, it will be used for all loaded glTF files.

    • factory: GLTFExtensionFactory

      The factory function that creates the loader extension.

    Returns void