Function nobject_rs::load_mtl

source ·
pub fn load_mtl(input: &str) -> Result<Vec<Material>, ObjError>
Expand description

Takes the content of an mtl file and parses it.

§Arguments

  • input - The content of the mtl file as a string

§Returns

Returns a Result of either ObjError on parse errors or a collection of Material.