pub fn create_named_mesh_with_materials_and_sections(
primitive_topology: MeshPrimitiveTopology,
streams: &[MeshStreamLayout],
materials: &[RenderMaterial],
sections: &[RenderMeshSection],
name: &str,
) -> RenderMeshHandle
Expand description
Create a mesh and return a handle to it.
The mesh can be split into multiple sections with different materials. If no sections are provided the entire mesh will be a single section. Note: Colors are assumed to be premultiplied alpha.