diff options
Diffstat (limited to 'application/main.cpp')
-rw-r--r-- | application/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp index 04ff9c0..72da726 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -98,7 +98,8 @@ public: const auto t_passed = std::chrono::duration_cast<WorldObject::TickDuration>(t_end - t_start); world.apply(&WorldObject::tick, t_passed); - world.apply<CameraController>(&CameraController::updateCamera, &camera, &shader); + world.apply<CameraController>(&CameraController::updateCamera, &camera); + shader.setView(camera.GetViewProjection()); windows.apply(&Window::Clear, 0.0F, 0.0F, 0.0F, 1.0F); world.apply<Renderable>(&Renderable::render, shader); windows.apply(&Window::SwapBuffers); |