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 support for CIE standard reference light sources #16

Open ianmackenzie opened 6 years ago

ianmackenzie commented 6 years ago

Overcast, sunny and partly overcast, as described in http://silviojemma.com/public/papers/lighting/spherical-harmonic-lighting.pdf.

For best results they should probably use something like importance sampling taking both the BRDF and lighting equation into account (heavily weight high-reflection directions, but also the direction sunlight is coming from...some sort of product?)