Skip to main content

Module unity_submesh

Module unity_submesh 

Source

Functions§

gltforge_mesh_submesh_count
Return the number of sub-meshes in mesh mesh_idx.
gltforge_mesh_submesh_indices_u16
Return a pointer to the u16 index data for sub-mesh submesh of mesh mesh_idx. Returns null if the mesh uses u32 indices or the indices are out of range. out_len receives the number of index values (not bytes).
gltforge_mesh_submesh_indices_u32
Return a pointer to the u32 index data for sub-mesh submesh of mesh mesh_idx. Returns null if the mesh uses u16 indices or the indices are out of range. out_len receives the number of index values (not bytes).
gltforge_mesh_submesh_material
Return the GLTF/PbrMetallicRoughness material index for sub-mesh submesh of mesh mesh_idx, or -1 if the primitive had no material.