Skip to content

Commit

Permalink
fix(scaleUV): flip operator for negative numbers in normalizeUV
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed May 23, 2024
1 parent 68434a0 commit a8214da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/mesh/scaleUV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export const normalizeUV = (geometry: BufferGeometry) => {
let v = uv.getY(idx)

if (u < 0) {
u = 1 - (u % 1)
u = 1 + (u % 1)
} else if (u > 1) {
u = u % 1
}

if (v < 0) {
v = 1 - (v % 1)
v = 1 + (v % 1)
} else if (v > 1) {
v = v % 1
}
Expand Down

0 comments on commit a8214da

Please sign in to comment.