summaryrefslogtreecommitdiff
path: root/game/vehicles/railVehicleClass.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-04 15:26:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-04 15:26:35 +0000
commit74b86470aec99b87a1f3545b7d3799dbf0c1e90c (patch)
tree368a0473ef2f735444f27a0d7088a22e231dd085 /game/vehicles/railVehicleClass.cpp
parentDynamicPoint shadow render now supports updating the position without calling... (diff)
downloadilt-74b86470aec99b87a1f3545b7d3799dbf0c1e90c.tar.bz2
ilt-74b86470aec99b87a1f3545b7d3799dbf0c1e90c.tar.xz
ilt-74b86470aec99b87a1f3545b7d3799dbf0c1e90c.zip
RailVehicleClass now renders bogie shadows as well as body
Diffstat (limited to 'game/vehicles/railVehicleClass.cpp')
-rw-r--r--game/vehicles/railVehicleClass.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp
index 90a06bd..41ef5e9 100644
--- a/game/vehicles/railVehicleClass.cpp
+++ b/game/vehicles/railVehicleClass.cpp
@@ -64,10 +64,15 @@ RailVehicleClass::render(
}
}
void
-RailVehicleClass::shadows(const ShadowMapper & shadowMapper, const Location & location) const
+RailVehicleClass::shadows(
+ const ShadowMapper & shadowMapper, const Location & location, const std::array<Location, 2> & bl) const
{
shadowMapper.dynamicPoint.use(location);
bodyMesh->Draw();
+ for (auto b = 0U; b < bogies.size(); ++b) {
+ shadowMapper.dynamicPoint.setModel(bl[b]);
+ bogies[b]->Draw();
+ }
}
float