Add indices for texcoord and normal.

This commit is contained in:
Syoyo Fujita
2015-06-23 11:45:21 +09:00
parent 3058419d7d
commit 8b86d6383c
4 changed files with 32 additions and 16 deletions

View File

@@ -37,7 +37,9 @@ typedef struct {
std::vector<float> positions;
std::vector<float> normals;
std::vector<float> texcoords;
std::vector<unsigned int> indices;
std::vector<unsigned int> indices; // indices for vertex
std::vector<unsigned int> normal_indices; // indices for normal
std::vector<unsigned int> texcoord_indices; // indices for texcoord
std::vector<int> material_ids; // per-mesh material ID
} mesh_t;