assert(mType==MeshTypes::TRIANGLES&&"GenerateNormals only supports triangle meshes, either add your own support for this type of mesh or request the feature.");
return;
}
// Some standard mesh information that you should have lying around.
// vertex is your vertex structure that just contains a normal and position here.
// mVertices is a pointer to the first vertex
// indices is a pointer to the first index
// num_verts is number of mVertices
// num_indices is number of indices
// each face of the mesh is made up of three mVertices.