summaryrefslogtreecommitdiff
path: root/game/environment.cpp
Commit message (Collapse)AuthorAge
* Use std::chrono for worldTimeHEADmainDan Goodliffe2 days
| | | | | | Defines a world time type alias, a game time scale factor (the rate at which world time progresses compare to real time) and display the world time on the status bar.
* Improve calculations of the amount and colour of ambient and directional sun ↵Dan Goodliffe3 days
| | | | light
* Fix warnings in Environment:getSunPosDan Goodliffe3 days
| | | | Mostly naming and bracketing.
* Fix up the preFrame process to use both frustumsDan Goodliffe2026-02-18
| | | | | | (camera and directional light frustums) This has made the whole preFrame process far more fiddly and repetitive than I'd like, but it does work. Maybe we can tidy it up later.
* Improve sun illumination based on angular size and astronomical twilightDan Goodliffe2024-10-24
|
* Use LightDirection for calculating/passing all light dir componentsDan Goodliffe2024-10-06
|
* Adjust light colour as sun rises/setsDan Goodliffe2024-09-22
| | | | This is a bit made-up-maths/numbers, but it looks reasonable.
* Calculate sunlight direction from worldTimeDan Goodliffe2024-09-22
|
* Move getSunPos to EnvironmentDan Goodliffe2024-09-20
|
* Add basic environment objectDan Goodliffe2024-09-20
Will hold world time/date, weather, location etc