Fix texcoord array indexing.
This commit is contained in:
@@ -165,9 +165,8 @@ updateVertex(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (i.vt_idx >= 0) {
|
if (i.vt_idx >= 0) {
|
||||||
texcoords.push_back(in_texcoords[3*i.vt_idx+0]);
|
texcoords.push_back(in_texcoords[2*i.vt_idx+0]);
|
||||||
texcoords.push_back(in_texcoords[3*i.vt_idx+1]);
|
texcoords.push_back(in_texcoords[2*i.vt_idx+1]);
|
||||||
texcoords.push_back(in_texcoords[3*i.vt_idx+2]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int idx = positions.size() / 3 - 1;
|
unsigned int idx = positions.size() / 3 - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user