diff options
Diffstat (limited to 'test/test-render.cpp')
-rw-r--r-- | test/test-render.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-render.cpp b/test/test-render.cpp index bb5a137..0a92689 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" @@ -32,6 +33,7 @@ class TestScene : public SceneProvider { std::shared_ptr<Plant> plant1; RailLinks rail; std::shared_ptr<GeoData> gd = std::make_shared<GeoData>(GeoData::createFlat({0, 0}, {1000000, 1000000}, 1)); + std::shared_ptr<Environment> env = std::make_shared<Environment>(); Terrain terrain {gd}; Water water {gd}; @@ -71,6 +73,12 @@ public: } void + environment(const SceneShader &, const SceneRenderer & r) const override + { + env->render(r, *this); + } + + void shadows(const ShadowMapper & shadowMapper) const override { terrain.shadows(shadowMapper); |