summaryrefslogtreecommitdiff
path: root/test/test-environment.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)
* Fix all warnings in test/Dan Goodliffe2025-05-01
|
* Improve sun illumination based on angular size and astronomical twilightDan Goodliffe2024-10-24
|
* Add LightDirection classDan Goodliffe2024-10-05
|
* Move getSunPos to EnvironmentDan Goodliffe2024-09-20
|
* Update getSunPos to use a standard time_tDan Goodliffe2024-09-19
|
* Add new mathematical constants to libDan Goodliffe2024-09-19
|
* Initial commit of code for calculating sun positionDan Goodliffe2024-09-18
Given the longitude and latitude, and a time into 2024, calculate the relative sun position suitable for providing lighting angles. Based on code from https://www.psa.es/ Loosely checked against https://www.pveducation.org/ and its close, working on faith really, but the numbers look plausible. Could do with a tidy up!