diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-29 13:20:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-29 13:20:55 +0000 |
commit | 0841ead91c49a212134f19f7c0b411984b0fda29 (patch) | |
tree | 605d5e8e512747c79875d2c3a185c9740f7d1080 /ui | |
parent | Run shadow mapper in camera relative space (diff) | |
download | ilt-0841ead91c49a212134f19f7c0b411984b0fda29.tar.bz2 ilt-0841ead91c49a212134f19f7c0b411984b0fda29.tar.xz ilt-0841ead91c49a212134f19f7c0b411984b0fda29.zip |
Remove weird operator! on vec2/3
Diffstat (limited to 'ui')
-rw-r--r-- | ui/manualCameraController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/manualCameraController.cpp b/ui/manualCameraController.cpp index f6993a8..1f6b510 100644 --- a/ui/manualCameraController.cpp +++ b/ui/manualCameraController.cpp @@ -79,5 +79,5 @@ void ManualCameraController::updateCamera(Camera * camera) const { const auto forward = glm::normalize(sincosf(direction) ^ -sin(pitch)); - camera->setView(!focus - forward * 3.F * std::pow(dist, 1.3F), forward); + camera->setView((focus ^ 0.F) - forward * 3.F * std::pow(dist, 1.3F), forward); } |