For example, if you haveĪ mesh of 100 Vertices, and want to have a position, normal and two texture coordinatesįor each vertex, then the mesh should have vertices, normals, uv and uv2Īrrays, each being 100 in size. All vertex information is stored in separate arrays of the same size, so if your mesh has 10 vertices, you would also have 10-size arrays for normals and other attributes.Ĭonceptually, all vertex data is stored in separate arrays of the same size. ![]() These are optional, and can be removed at will. The triangle arrays are indices into the vertex arrays three indices for each triangle.įor every vertex there can be a normal, eight texture coordinates, color, tangent, and bone weight. ![]() ![]() Meshes contain vertices and multiple triangle arrays.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |