Function rend3_gltf::add_mesh_by_index
source · [−]pub fn add_mesh_by_index<E: Error + 'static>(
renderer: &Renderer,
loaded: &LoadedGltfScene,
mesh_index: usize,
name: Option<&str>,
skin_index: Option<usize>,
transform: Mat4
) -> Result<Labeled<Object>, GltfLoadError<E>>
Expand description
Adds a single mesh from the LoadedGltfScene
found by its index,
as an object to the scene.