diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-17 00:23:21 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-17 00:34:57 +0000 |
commit | 5283c898f008a54a1f275841281e2b7aa685f02c (patch) | |
tree | a75620a02da52e444a5c72d08b5f8d37e675fe61 /gfx/followCameraController.cpp | |
parent | Tidy code for calculating position of rail vehicle by bogeys (diff) | |
download | ilt-5283c898f008a54a1f275841281e2b7aa685f02c.tar.bz2 ilt-5283c898f008a54a1f275841281e2b7aa685f02c.tar.xz ilt-5283c898f008a54a1f275841281e2b7aa685f02c.zip |
Disconnect camera control from shader
Diffstat (limited to 'gfx/followCameraController.cpp')
-rw-r--r-- | gfx/followCameraController.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gfx/followCameraController.cpp b/gfx/followCameraController.cpp index 0034c3b..4db77cd 100644 --- a/gfx/followCameraController.cpp +++ b/gfx/followCameraController.cpp @@ -12,7 +12,7 @@ FollowCameraController::FollowCameraController(VehicleWPtr t, Mode m) : target(std::move(t)), mode(m) { } void -FollowCameraController::updateCamera(Camera * camera, Shader * shader) const +FollowCameraController::updateCamera(Camera * camera) const { const auto [pos, rot] = [this]() { const auto t {target.lock()}; @@ -37,6 +37,4 @@ FollowCameraController::updateCamera(Camera * camera, Shader * shader) const camera->up = glm::normalize(up - north - east); break; } - - shader->setView(camera->GetViewProjection()); } |