diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-26 20:52:52 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-26 20:52:52 +0000 |
| commit | 2e2d7d2a124ae912ee486f1fc11b578f93ba0dee (patch) | |
| tree | 79deaf7736918b86472ddc2ac1e09c6270613e80 /game/environment.h | |
| parent | Improve light approximations in LightDirection (diff) | |
| download | ilt-2e2d7d2a124ae912ee486f1fc11b578f93ba0dee.tar.bz2 ilt-2e2d7d2a124ae912ee486f1fc11b578f93ba0dee.tar.xz ilt-2e2d7d2a124ae912ee486f1fc11b578f93ba0dee.zip | |
Improve calculations of the amount and colour of ambient and directional sun light
Diffstat (limited to 'game/environment.h')
| -rw-r--r-- | game/environment.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/game/environment.h b/game/environment.h index 6a2e1ad..271792f 100644 --- a/game/environment.h +++ b/game/environment.h @@ -11,9 +11,11 @@ public: Environment(); void tick(TickDuration elapsed) override; void render(const SceneRenderer &, const SceneProvider &) const; - Direction2D getSunPos() const; - static Direction2D getSunPos(const Direction2D position, const time_t time); + [[nodiscard]] Direction2D getSunPos() const; + [[nodiscard]] time_t getWorldTime() const; + [[nodiscard]] static Direction2D getSunPos(Direction2D position, time_t time); private: time_t worldTime; + glm::vec<2, Angle> earthPos; }; |
