spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.13k stars 379 forks source link

Fixed counters attribute calculation #114

Open vHeemstra opened 3 years ago

vHeemstra commented 3 years ago

The counters attribute array made the dash calculations go wrong. For example: a two-point line with a dashArray value of 0.5 would only give 1 dash instead of (1/0.5 =) 2. (See plot of opacity/alpha value here.) This altered counters calculation fixes that.

drcmda commented 1 year ago

i've merged your commit to https://github.com/pmndrs/meshline