From 6a37a195b377fe71701a7e28f98ae1fac9dc384a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Ponce?= Date: Thu, 11 Jan 2024 22:00:25 -0300 Subject: [PATCH] fix(LineSegmentsGeometry): dynamic interleave offset (#336) --- src/lines/LineSegmentsGeometry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lines/LineSegmentsGeometry.js b/src/lines/LineSegmentsGeometry.js index 8259a0b1..967b2fcb 100644 --- a/src/lines/LineSegmentsGeometry.js +++ b/src/lines/LineSegmentsGeometry.js @@ -86,7 +86,7 @@ class LineSegmentsGeometry extends InstancedBufferGeometry { const instanceColorBuffer = new InstancedInterleavedBuffer(colors, itemSize * 2, 1) // rgb(a), rgb(a) this.setAttribute('instanceColorStart', new InterleavedBufferAttribute(instanceColorBuffer, itemSize, 0)) // rgb(a) - this.setAttribute('instanceColorEnd', new InterleavedBufferAttribute(instanceColorBuffer, itemSize, 3)) // rgb(a) + this.setAttribute('instanceColorEnd', new InterleavedBufferAttribute(instanceColorBuffer, itemSize, itemSize)) // rgb(a) return this }