Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MTLFileLoader

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

Hierarchy

  • MTLFileLoader

Index

Properties

Methods

Properties

materialsSearch playground for materials

materials: StandardMaterial[]

All material loaded from the mtl will be set here

Static INVERT_TEXTURE_YSearch playground for INVERT_TEXTURE_Y

INVERT_TEXTURE_Y: boolean

Invert Y-Axis of referenced textures on load

Methods

parseMTLSearch playground for parseMTL

  • parseMTL(scene: Scene, data: string | ArrayBuffer, rootUrl: string, forAssetContainer: boolean): 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

    • forAssetContainer: boolean

      defines if the material should be registered in the scene

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static property
  • Static method