elm-3d-scene icon indicating copy to clipboard operation
elm-3d-scene copied to clipboard

Add support for silhouette edges

Open ianmackenzie opened this issue 4 years ago • 2 comments

Should be able to reuse much of the shadow edges logic to tag lines with their adjacent face normals, then only render silhouette edges

ianmackenzie avatar Sep 04 '19 14:09 ianmackenzie

Similar to Mesh.shadow, might be able to have

Mesh.silhouette : Mesh coordinates a -> Silhouette coordinates

and then Scene3d.silhouette, Scene3d.withSilhouette etc.

ianmackenzie avatar Jan 30 '20 23:01 ianmackenzie

Possibly useful: use trick described in http://www.terathon.com/gdc07_lengyel.pdf to adjust depth calculation, instead of using actual polygon offset

ianmackenzie avatar Jul 09 '20 18:07 ianmackenzie