diff --git a/src/main.cc b/src/main.cc index c321091..00e6ac5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -43,8 +43,8 @@ struct Camera { // Point in world coordinates where the camera is located glm::vec3 position; - // view_direction is an actual direction vector. When used with glm::lookAt, we add it to the position - // to calculate the target the camera is looking at + // view_direction is an actual direction vector. When used with glm::lookAt, it gets added to the + // position to calculate the target point the camera is looking at glm::vec3 view_direction; // The up vector in world coordinates @@ -96,7 +96,6 @@ struct App { glm::mat4 projection_mat; GLint u_projection_idx; - glm::vec2 current_mouse; glm::vec2 prev_mouse; bool running; @@ -191,7 +190,6 @@ int init(App &app) { 0.1f, 20.0f ); - app.current_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT); app.prev_mouse = glm::vec2(WINDOW_HALF_WIDTH, WINDOW_HALF_HEIGHT); return EXIT_CODE_SUCCESS;