| Commit message (Collapse) | Author | Age | |
|---|---|---|---|
| * | Improve light approximations in LightDirection | Dan Goodliffe | 3 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 Goodliffe | 2025-05-01 |
| | | |||
| * | Improve sun illumination based on angular size and astronomical twilight | Dan Goodliffe | 2024-10-24 |
| | | |||
| * | Add LightDirection class | Dan Goodliffe | 2024-10-05 |
| | | |||
| * | Move getSunPos to Environment | Dan Goodliffe | 2024-09-20 |
| | | |||
| * | Update getSunPos to use a standard time_t | Dan Goodliffe | 2024-09-19 |
| | | |||
| * | Add new mathematical constants to lib | Dan Goodliffe | 2024-09-19 |
| | | |||
| * | Initial commit of code for calculating sun position | Dan Goodliffe | 2024-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! | |||
