Skip to content

Commit

Permalink
fix: Fix indexing error at CSG obtainment from Geometry (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hanli authored Mar 16, 2023
1 parent 82bfb72 commit fd17d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CSG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
);
}
Expand Down

0 comments on commit fd17d3d

Please sign in to comment.