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/manualCameraController.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/manualCameraController.cpp')
-rw-r--r-- | gfx/manualCameraController.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gfx/manualCameraController.cpp b/gfx/manualCameraController.cpp index 36f3312..f8cdbf8 100644 --- a/gfx/manualCameraController.cpp +++ b/gfx/manualCameraController.cpp @@ -48,7 +48,7 @@ ManualCameraController::handleInput(SDL_Event & e) } void -ManualCameraController::updateCamera(Camera * camera, Shader * shader) const +ManualCameraController::updateCamera(Camera * camera) const { if (motion) { if (ctrl) { @@ -59,7 +59,6 @@ ManualCameraController::updateCamera(Camera * camera, Shader * shader) const camera->MoveRight(motion->xrel); camera->SlideForward(motion->yrel); } - shader->setView(camera->GetViewProjection()); motion.reset(); } } |