diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-23 23:50:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-23 23:50:46 +0000 |
commit | 8391c63472641c67f59723d0a6706efff6fb17d4 (patch) | |
tree | b76f6fc642b749ee69d4be4b2e3f60e80c0ed7bc /test | |
parent | Bind the network profile in as uniforms (diff) | |
download | ilt-8391c63472641c67f59723d0a6706efff6fb17d4.tar.bz2 ilt-8391c63472641c67f59723d0a6706efff6fb17d4.tar.xz ilt-8391c63472641c67f59723d0a6706efff6fb17d4.zip |
Fix network population of position in gBuffer
Adds some rails to the basic test highlighting broken shadows
Diffstat (limited to 'test')
-rw-r--r-- | test/test-render.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-render.cpp b/test/test-render.cpp index cc2bba2..6c20a23 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -25,6 +25,7 @@ class TestScene : public SceneProvider { const RailVehicleClassPtr brush47rvc = std::dynamic_pointer_cast<RailVehicleClass>( AssetFactory::loadXML(RESDIR "/brush47.xml")->assets.at("brush-47")); std::shared_ptr<RailVehicle> train1, train2; + RailLinks rail; Terrain terrain {[]() { auto gd = std::make_shared<GeoData>(GeoData::createFlat({0, 0}, {1000000, 1000000}, 1)); @@ -42,6 +43,8 @@ public: train2->location.setPosition({52000, 30000, 2000}); train2->bogies.front().setPosition(train2->bogies.front().position() + train2->location.position()); train2->bogies.back().setPosition(train2->bogies.back().position() + train2->location.position()); + rail.addLinksBetween({42000, 50000, 1000}, {65000, 50000, 1000}); + rail.addLinksBetween({65000, 50000, 1000}, {75000, 45000, 2000}); } void @@ -49,6 +52,7 @@ public: { terrain.render(shader); brush47rvc->render(shader); + rail.render(shader); } void |