Skip to content

Commit

Permalink
fix: fix sphere geometry uv
Browse files Browse the repository at this point in the history
fix sphere geometry uv
  • Loading branch information
ZenderJK committed Oct 29, 2023
1 parent 4c8c41b commit 8d4cb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shape/SphereGeometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class SphereGeometry extends GeometryBase {
normal_arr[ni++] = z * normLen;

uv_arr[ui++] = i / _segmentsW;
uv_arr[ui++] = j / _segmentsH;
uv_arr[ui++] = 1.0 - j / _segmentsH;

if (i > 0 && j > 0) {
var a: number = (_segmentsW + 1) * j + i;
Expand Down

0 comments on commit 8d4cb8a

Please sign in to comment.