Skip to content

Commit

Permalink
Feature Suggestion: Add perspective size attenuation option to LineMa…
Browse files Browse the repository at this point in the history
…terial (mrdoob#16912)

* Add feature to LineMaterial to support toggling screen-space line width

* Change lines parameter

* remove magic number scaling

* change if to use mix function

* build jsm

* rename variable to size attenuation, use defines

* Add perspective attenuation with width in world units

* Update comments

* Add jsm build

* revert statement position

* Change sizeAttenuation to worldUnits

* Fix endcaps not being perpendicular to line direction

* Update js examples version

* Make line look like a capsule (#6)

* update js file

* Update comments

* Add a tighter containment for capsule

* update module

* small adjustment
  • Loading branch information
gkjohnson authored Aug 24, 2021
1 parent c568b22 commit 38ce808
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 65 deletions.
Loading

0 comments on commit 38ce808

Please sign in to comment.