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

Shadows have some artifacts on iOS hardware #72

Closed ianmackenzie closed 4 years ago

ianmackenzie commented 4 years ago

There are often some missing pixels, and occasionally a large misplaced 'shard' of shadow (as if one of the triangles of the shadow volume wasn't rendered at all). Could be that these issues go away when switching to a more robust shadow implementation (#35) - needs to be tested.

ianmackenzie commented 4 years ago

Resolved largely by updating to use higher precision as appropriate (#74), as well as some other tricks like using a small polygon offset on shadow volumes and tightening near/far depth values.