Static methods

staticload(name:String, ?extraShaderFlags:Array<String>, ?customShaderPath:String):Map<String, FoxMaterial>

Loads a MTL file for an OBJ mesh, although it can be loaded independently if you need it.

Parameters:

name

The MTL asset path

extraShaderFlags

(Optional) A String array containing additional flags you want to use for this material

customShaderPath

(Optional) The path to a custom shader if you need it. The default is Foxlite's basic_lighting

Returns:

A Map containing the materials inside the MTL by their name.