Skip to content

Commit

Permalink
fix(plane): fix cull face (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
singlecoder authored Oct 12, 2021
1 parent f4d524e commit 2a487a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/mesh/PrimitiveMesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ export class PrimitiveMesh {
const c = a + horizontalCount;
const d = c + 1;

indices[offset++] = b;
indices[offset++] = c;
indices[offset++] = a;
indices[offset++] = c;
indices[offset++] = b;
indices[offset++] = d;
indices[offset++] = c;
indices[offset++] = d;
indices[offset++] = b;
}

const { bounds } = mesh;
Expand Down

0 comments on commit 2a487a7

Please sign in to comment.