MTLFileLoader

Class reading and parsing the MTL file bundled with the obj file.

Hierarchy

  • MTLFileLoader

Index

Properties

Methods

Properties

materials

Find examples in Playground
materials: StandardMaterial[]

All material loaded from the mtl will be set here

Methods

parseMTL

Find examples in Playground
  • parseMTL(scene: Scene, data: string | ArrayBuffer, rootUrl: string): void
  • This function will read the mtl file and create each material described inside This function could be improve by adding : -some component missing (Ni, Tf...) -including the specific options available

    Parameters

    • scene: Scene

      defines the scene the material will be created in

    • data: string | ArrayBuffer

      defines the mtl data to parse

    • rootUrl: string

      defines the rooturl to use in order to load relative dependencies

    Returns void

Generated using TypeDoc