Documentation / loaders / parseMtl
Function: parseMtl()
parseMtl(
source):Map<string,ObjMaterial>
Defined in: libs/loaders/src/obj/parser.ts:231
Parses a Wavefront MTL document.
Parameters
source
string
MTL source text.
Returns
Map<string, ObjMaterial>
Materials indexed by their newmtl name.