From 2e2d7d2a124ae912ee486f1fc11b578f93ba0dee Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 26 Mar 2026 20:52:52 +0000 Subject: Improve calculations of the amount and colour of ambient and directional sun light --- game/environment.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'game/environment.h') 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; }; -- cgit v1.3