]> git.localhorst.tv Git - blobs.git/commitdiff
explicit dvec to vec
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 15 Dec 2017 17:43:09 +0000 (18:43 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 15 Dec 2017 17:43:09 +0000 (18:43 +0100)
src/app/states.cpp

index d86039bad0d4febee13173b397be568d1f2f97f9..8647ff63d49ce4375645395b9df14fa353ba63ec 100644 (file)
@@ -241,7 +241,7 @@ void MasterState::OnMouseWheel(const SDL_MouseWheelEvent &e) {
 }
 
 void MasterState::OnRender(graphics::Viewport &viewport) {
-       cam.LookAt(cam_pos, cam_focus, cam_up);
+       cam.LookAt(glm::vec3(cam_pos), glm::vec3(cam_focus), glm::vec3(cam_up));
        assets.shaders.planet_surface.Activate();
        assets.shaders.planet_surface.SetV(cam.View());
        assets.shaders.sun_surface.Activate();