From 489fa7f930689dc9ff271138e613a8d68d88ee45 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 20 Sep 2024 20:17:32 +0100 Subject: Add basic environment object Will hold world time/date, weather, location etc --- test/test-render.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test-render.cpp') diff --git a/test/test-render.cpp b/test/test-render.cpp index b9a809e..ea53708 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -1,3 +1,4 @@ +#include "game/environment.h" #define BOOST_TEST_MODULE test_render #include "testHelpers.h" @@ -33,6 +34,7 @@ class TestScene : public SceneProvider { std::shared_ptr plant1; RailLinks rail; std::shared_ptr gd = std::make_shared(GeoData::createFlat({0, 0}, {1000000, 1000000}, 1)); + std::shared_ptr env = std::make_shared(); Terrain terrain {gd}; Water water {gd}; @@ -68,6 +70,12 @@ public: { } + void + environment(const SceneShader &, const SceneRenderer & r) const override + { + env->render(r, *this); + } + void shadows(const ShadowMapper & shadowMapper) const override { -- cgit v1.2.3