ianmackenzie / elm-3d-scene

A high-level 3D rendering engine for Elm, with support for lighting, shadows, and realistic materials.
https://package.elm-lang.org/packages/ianmackenzie/elm-3d-scene/latest/
Mozilla Public License 2.0
205 stars 27 forks source link

Add edge highlighting #10

Open ianmackenzie opened 7 years ago

ianmackenzie commented 7 years ago

Various possible approaches:

ianmackenzie commented 6 years ago

Perhaps use lambertian / fwidth(lambertian) for toon shading, as suggested by https://twitter.com/rickyreusser/status/1023852556060057600 (would require standard derivative support in the webgl package)