summaryrefslogtreecommitdiff
path: root/game/environment.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-09-18 02:02:47 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2024-09-18 10:10:38 +0100
commitc0c7203024c60f4ebb70958ee8727271ab4136fb (patch)
tree7d8d84caa10a25f60e9d9c952ea4390f8e1dd9df /game/environment.h
parentDon't create lots of unnecessary tmps (diff)
downloadilt-c0c7203024c60f4ebb70958ee8727271ab4136fb.tar.bz2
ilt-c0c7203024c60f4ebb70958ee8727271ab4136fb.tar.xz
ilt-c0c7203024c60f4ebb70958ee8727271ab4136fb.zip
Initial commit of code for calculating sun position
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!
Diffstat (limited to 'game/environment.h')
0 files changed, 0 insertions, 0 deletions