Skip to content

Commit

Permalink
encode da triangles
Browse files Browse the repository at this point in the history
  • Loading branch information
kion-dgl committed Jul 7, 2024
1 parent a1e3f59 commit c348aa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/body.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ test('Re-encoding the faces read from the body', () => {
expect(Math.floor((b.v - PIXEL_ADJUSTMEST) / PIXEL_TO_FLOAT_RATIO)).toEqual(bv);
expect(Math.floor((c.u - PIXEL_ADJUSTMEST) / PIXEL_TO_FLOAT_RATIO)).toEqual(cu);
expect(Math.floor((c.v - PIXEL_ADJUSTMEST) / PIXEL_TO_FLOAT_RATIO)).toEqual(cv);

expect(indexA | (indexB << 7) | (indexC << 14) | (materialIndex << 28)).toEqual(dword);
}

});
Expand Down

0 comments on commit c348aa4

Please sign in to comment.