summaryrefslogtreecommitdiff
path: root/game/vehicles/railVehicleClass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/vehicles/railVehicleClass.cpp')
-rw-r--r--game/vehicles/railVehicleClass.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp
index 5bcdc6e..dff1416 100644
--- a/game/vehicles/railVehicleClass.cpp
+++ b/game/vehicles/railVehicleClass.cpp
@@ -1,5 +1,6 @@
#include "railVehicleClass.h"
#include "gfx/gl/sceneShader.h"
+#include "gfx/gl/shadowMapper.h"
#include "gfx/models/mesh.h"
#include "gfx/models/obj.h"
#include "gfx/models/texture.h"
@@ -50,6 +51,12 @@ RailVehicleClass::render(
bogies[b]->Draw();
}
}
+void
+RailVehicleClass::shadows(const ShadowMapper & shadowMapper, const Location & location) const
+{
+ shadowMapper.dynamicPoint.use(location);
+ bodyMesh->Draw();
+}
float
RailVehicleClass::bogieOffset(ObjParser & o)