Skip to content

Commit

Permalink
Fix triangle strip vertex order to have a consistent provoking vertex
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jul 17, 2024
1 parent 096985f commit 7738899
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GPU/Common/IndexGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ void IndexGenerator::AddList(int numVerts, int indexOffset, bool clockwise) {

alignas(16) static const u16 offsets_clockwise[24] = {
0, (u16)(0 + 1), (u16)(0 + 2),
1, (u16)(1 + 2), (u16)(1 + 1),
(u16)(1 + 1), 1, (u16)(1 + 2),
2, (u16)(2 + 1), (u16)(2 + 2),
3, (u16)(3 + 2), (u16)(3 + 1),
(u16)(3 + 1), 3, (u16)(3 + 2),
4, (u16)(4 + 1), (u16)(4 + 2),
5, (u16)(5 + 2), (u16)(5 + 1),
(u16)(5 + 1), 5, (u16)(5 + 2),
6, (u16)(6 + 1), (u16)(6 + 2),
7, (u16)(7 + 2), (u16)(7 + 1),
(u16)(7 + 1), 7, (u16)(7 + 2),
};

alignas(16) static const uint16_t offsets_counter_clockwise[24] = {
Expand Down

0 comments on commit 7738899

Please sign in to comment.