ThreePipe
    Preparing search index...

    Class MTLLoader2

    Loads a Wavefront .mtl file specifying materials

    Hierarchy

    Index

    Constructors

    Methods

    • Loads and parses a MTL asset from a URL.

      Parameters

      • url: any

        URL to the MTL file.

      • OptionalonLoad: any

        Callback invoked with the loaded object.

      • OptionalonProgress: any

        Callback for download progress.

      • OptionalonError: any

        Callback for download errors.

        setPath setResourcePath

      Returns void

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