From fd17d3df2b60bea9e8fbb1da62ae159c782b5632 Mon Sep 17 00:00:00 2001 From: Hanli Liu Xiao <79277929+liu-hanli@users.noreply.github.com> Date: Thu, 16 Mar 2023 17:27:08 +0800 Subject: [PATCH] fix: Fix indexing error at CSG obtainment from Geometry (#58) --- src/CSG.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CSG.ts b/src/CSG.ts index c279c1b..0a39d0f 100644 --- a/src/CSG.ts +++ b/src/CSG.ts @@ -64,9 +64,9 @@ export class CSG { new Vector(u, v, 0), colorattr && new Vector( - colorattr.array[vt], - colorattr.array[vt + 1], - colorattr.array[vt + 2] + colorattr.array[vp], + colorattr.array[vp + 1], + colorattr.array[vp + 2] ) ); }