diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-23 21:31:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-23 21:31:41 +0100 |
commit | 687afb09ada73fb4aee932242a3b7ee492e63cb0 (patch) | |
tree | e8c654edf5b0927238c89d8c861afe9bed995c8c /game/vehicles/train.cpp | |
parent | Add BufferedLocation (diff) | |
download | ilt-687afb09ada73fb4aee932242a3b7ee492e63cb0.tar.bz2 ilt-687afb09ada73fb4aee932242a3b7ee492e63cb0.tar.xz ilt-687afb09ada73fb4aee932242a3b7ee492e63cb0.zip |
Handle rendering of RailVehicles through RailVehicleClass instancing
Trains no longer need rendering as their parts are all RVC assets and that just works now.
This commit creates some irritating duplication in RVC wrt body/2 bogies all of which are stored
separately, but function in exactly the same way.
This breaks RV shadows as we have no instancing shadow shaders yet.
Diffstat (limited to 'game/vehicles/train.cpp')
-rw-r--r-- | game/vehicles/train.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/game/vehicles/train.cpp b/game/vehicles/train.cpp index 0332c04..fdfc3e1 100644 --- a/game/vehicles/train.cpp +++ b/game/vehicles/train.cpp @@ -11,17 +11,6 @@ class Ray; -void -Train::render(const SceneShader & shader) const -{ - apply(&Renderable::render, shader); -} -void -Train::shadows(const ShadowMapper & shadowMapper) const -{ - apply(&Renderable::shadows, shadowMapper); -} - Location Train::getBogiePosition(float linkDist, float dist) const { |