[][src]Function rpt::load_obj_with_mtl

pub fn load_obj_with_mtl(obj_file: File, mtl_file: File) -> Result<Vec<Object>>

Load an object, with materials, from a Wavefront .OBJ file

This function ignores the mtllib commands that look for files in the same directory, instead choosing a more explicit approach where you pass in the .mtl file directly as the second argument.

See here and here for details.