summaryrefslogtreecommitdiff
path: root/gfx/lightDirection.cpp
Commit message (Collapse)AuthorAge
* Improve light approximations in LightDirectionDan Goodliffe3 days
| | | | | | | | | Twilight replaces astronomical twilight to give a longer fade. Astronomical twilight is only the darkest part of twilight, which we had skipped right to. Fixes directional light amount to only be affected by the sun's passing below th horizon, not it's whole height above it. Adds a rough approximation of the amount of atmosphere scattering of directional light (I made this calculation up)
* Improve sun illumination based on angular size and astronomical twilightDan Goodliffe2024-10-24
|
* Add LightDirection classDan Goodliffe2024-10-05