Class MTLLoader2

Loads a Wavefront .mtl file specifying materials

Hierarchy

Constructors

Methods

  • Loads and parses a MTL asset from a URL.

    Parameters

    • url: any

      URL to the MTL file.

    • Optional onLoad: any

      Callback invoked with the loaded object.

    • Optional onProgress: any

      Callback for download progress.

    • Optional onError: any

      Callback for download errors.

    Returns void

    Link

    setPath setResourcePath

    Note

    In order for relative texture references to resolve correctly you must call setResourcePath() explicitly prior to load.

Generated using TypeDoc