From 2a487a741e4a696995401755db34afcd66539d5b Mon Sep 17 00:00:00 2001 From: singlecoder Date: Tue, 12 Oct 2021 19:09:15 +0800 Subject: [PATCH] fix(plane): fix cull face (#537) --- packages/core/src/mesh/PrimitiveMesh.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/mesh/PrimitiveMesh.ts b/packages/core/src/mesh/PrimitiveMesh.ts index 5ce2f20e07..ab9bb2b808 100644 --- a/packages/core/src/mesh/PrimitiveMesh.ts +++ b/packages/core/src/mesh/PrimitiveMesh.ts @@ -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;