Skip to content

Commit

Permalink
fix(plane): fix uv error (galacean#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
singlecoder committed Oct 13, 2021
1 parent 7112edb commit 4d5525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/mesh/PrimitiveMesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class PrimitiveMesh {
// Normal
normals[i] = new Vector3(0, 1, 0);
// Texcoord
uvs[i] = new Vector2(x * horizontalSegmentsReciprocal, 1 - z * verticalSegmentsReciprocal);
uvs[i] = new Vector2(x * horizontalSegmentsReciprocal, z * verticalSegmentsReciprocal);
}

let offset = 0;
Expand Down

0 comments on commit 4d5525a

Please sign in to comment.