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
207 stars 27 forks source link

Improve shadow implementation #35

Closed ianmackenzie closed 4 years ago

ianmackenzie commented 4 years ago

The current shadow implementation uses the simpler-to-understand but naive implementation that doesn't work if the viewer is inside the shadow volume; should be updated to the more sophisticated (and more efficient) implementation instead

ianmackenzie commented 4 years ago

Shadows were updated to use the Z-fail method in 8a8f31a2a73a2b1d17ef5bfad8519caa68271946.