From 9b8c20d0ac5c790a0a9ac2872fd6d6b3f6f9bf84 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 15 Dec 2023 00:48:10 -0800 Subject: [PATCH] fix cube --- src/primitives.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/primitives.ts b/src/primitives.ts index 0aa50dd..f819703 100644 --- a/src/primitives.ts +++ b/src/primitives.ts @@ -356,9 +356,9 @@ export function createCubeVertices({size = 1} = {}) { // Each face needs all four vertices because the normals and texture // coordinates are not all the same. - positions.push(position); - normals.push(normal); - texcoords.push(uv); + positions.push(...position); + normals.push(...normal); + texcoords.push(...uv); } // Two triangles make a square face.