Skip to content

Commit

Permalink
fix(LineSegmentsGeometry): dynamic interleave offset (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiponce authored Jan 12, 2024
1 parent 06d48dc commit 6a37a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lines/LineSegmentsGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6a37a19

Please sign in to comment.