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

Allow mirroring shadows #43

Closed ianmackenzie closed 4 years ago

ianmackenzie commented 4 years ago

The current Entity.shadowDrawFunction doesn't work properly when a shadow is mirrored, since that changes the handedness of all the faces. May need to add a uniform to the shader, or perhaps just flip the WebGL.Settings.cullFace setting if that's enough.