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 ability to set cutoff distance for point lights #79

Open ianmackenzie opened 4 years ago

ianmackenzie commented 4 years ago

Useful optimization that allows point lights to be ignored past a certain distance; will require adjusting the falloff function to trend smoothly to zero at the given cutoff.