diff options
| author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-02-18 17:14:31 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-02-18 19:02:27 +0000 |
| commit | d8464a28c6066931dd638653e2a082e2640191dc (patch) | |
| tree | 18134e3ee51c9fd423b9395b90c3f19b6e54cfc3 /game/environment.h | |
| parent | Add Renderable::preFrame for doing non-const frame prep work (diff) | |
| download | ilt-d8464a28c6066931dd638653e2a082e2640191dc.tar.bz2 ilt-d8464a28c6066931dd638653e2a082e2640191dc.tar.xz ilt-d8464a28c6066931dd638653e2a082e2640191dc.zip | |
Fix up the preFrame process to use both frustums
(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.
Diffstat (limited to 'game/environment.h')
| -rw-r--r-- | game/environment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/game/environment.h b/game/environment.h index a6f3036..6a2e1ad 100644 --- a/game/environment.h +++ b/game/environment.h @@ -11,6 +11,7 @@ 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); private: |
