Skip to content

Commit 6a37a19

Browse files
authored
fix(LineSegmentsGeometry): dynamic interleave offset (#336)
1 parent 06d48dc commit 6a37a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lines/LineSegmentsGeometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class LineSegmentsGeometry extends InstancedBufferGeometry {
8686
const instanceColorBuffer = new InstancedInterleavedBuffer(colors, itemSize * 2, 1) // rgb(a), rgb(a)
8787

8888
this.setAttribute('instanceColorStart', new InterleavedBufferAttribute(instanceColorBuffer, itemSize, 0)) // rgb(a)
89-
this.setAttribute('instanceColorEnd', new InterleavedBufferAttribute(instanceColorBuffer, itemSize, 3)) // rgb(a)
89+
this.setAttribute('instanceColorEnd', new InterleavedBufferAttribute(instanceColorBuffer, itemSize, itemSize)) // rgb(a)
9090

9191
return this
9292
}

0 commit comments

Comments
 (0)