diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-04 15:26:35 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-04 15:26:35 +0000 |
commit | 74b86470aec99b87a1f3545b7d3799dbf0c1e90c (patch) | |
tree | 368a0473ef2f735444f27a0d7088a22e231dd085 /test | |
parent | DynamicPoint shadow render now supports updating the position without calling... (diff) | |
download | ilt-74b86470aec99b87a1f3545b7d3799dbf0c1e90c.tar.bz2 ilt-74b86470aec99b87a1f3545b7d3799dbf0c1e90c.tar.xz ilt-74b86470aec99b87a1f3545b7d3799dbf0c1e90c.zip |
RailVehicleClass now renders bogie shadows as well as body
Diffstat (limited to 'test')
-rw-r--r-- | test/test-render.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-render.cpp b/test/test-render.cpp index 7db847d..7771760 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -29,8 +29,8 @@ class TestScene : public SceneProvider { content(const SceneShader & shader) const override { terrain.render(shader); - train.render(shader, Location {{52, 50, 2}}, {Location {}, Location {}}); - train.render(shader, Location {{52, 30, 2}}, {Location {}, Location {}}); + train.render(shader, Location {{52, 50, 2}}, {Location {{52, 56, 2}}, Location {{52, 44, 2}}}); + train.render(shader, Location {{52, 30, 2}}, {Location {{52, 36, 2}}, Location {{52, 24, 2}}}); } void lights(const SceneShader &) const override @@ -40,8 +40,8 @@ class TestScene : public SceneProvider { shadows(const ShadowMapper & shadowMapper) const override { terrain.shadows(shadowMapper); - train.shadows(shadowMapper, Location {{52, 50, 2}}); - train.shadows(shadowMapper, Location {{52, 30, 2}}); + train.shadows(shadowMapper, Location {{52, 50, 2}}, {Location {{52, 56, 2}}, Location {{52, 44, 2}}}); + train.shadows(shadowMapper, Location {{52, 30, 2}}, {Location {{52, 36, 2}}, Location {{52, 24, 2}}}); } }; |