pub fn load_mtl<P>(file_name: P) -> MTLLoadResult
Expand description
Load the materials defined in a MTL
file.
Returns a pair with a Vec
holding all loaded materials and a HashMap
containing a mapping of material names to indices in the Vec.
pub fn load_mtl<P>(file_name: P) -> MTLLoadResult
Load the materials defined in a MTL
file.
Returns a pair with a Vec
holding all loaded materials and a HashMap
containing a mapping of material names to indices in the Vec.