pub fn parse_mtl<R: Read>(reader: R) -> HashMap<String, MtlMaterial>Expand description
Parses an MTL material library from a reader.
Reads line-by-line, extracting newmtl and Kd directives. Materials without
a Kd line get a default gray color (#808080FF). Texture map references (map_Kd
and other map_* directives) emit a warning to stderr and are skipped.
Bad or unparseable lines are silently skipped without aborting.
ยงReturns
A HashMap mapping material name to MtlMaterial.