Planet-LOD
Planet-LOD copied to clipboard
Duplicated idx
I found that in the idx definition there is one duplicated face (10, 7, 6).
Current code is:
std::vector
idx({ 0, 11, 5, 0, 5, 1, 0, 1, 7, 0, 7, 10, 0, 10, 11, 1, 5, 9, 5, 11, 4, 11, 10, 2, 10, 7, 6, 10, 7, 6, 7, 1, 8, 3, 9, 4, 3, 4, 2, 3, 2, 6, 3, 6, 8, 3, 8, 9, 4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1 });
As we can see the following three values are the same, If we remove those, the sphere will look the same but without the duplicated face and therefore will render with less vertices.