Add sky / sun model
snogglethorpe opened this issue · comments
The new hotness seems to be Lukas Hosek and Alexander Wilkie's stuff:
http://cgg.mff.cuni.cz/projects/SkylightModelling/
"An Analytic Model for Full Spectral Sky-Dome Radiance"
"Adding a Solar Radiance Function to the Hosek Skylight Model"
"Predicting Sky Dome Appearance on Earth-like Extrasolar Worlds"
They also conveniently supply ready-made (and apparently very good quality) source code that does exactly what we want and has a free (BSD3) license... :]
http://cgg.mff.cuni.cz/projects/SkylightModelling/HosekWilkie_SkylightModel_C_Source.1.4a.zip
Maybe instead of adding a dedicated sky light, we could follow issue #47, and add a "sky texture" to be used with InfSphereLight
.