|
|
@@ -268,7 +268,7 @@ void camera_augment_helper_v2::impl::update_cursor_coordinate() {
|
|
|
|
|
|
auto cam_mat = glm::rotate(last_camera.transform,
|
|
|
glm::radians(180.0f), glm::vec3(1.0f, 0.0f, 0.0f)); // camera -> viewport
|
|
|
- auto w_pos_h = glm::inverse(cam_mat) * to_homo(c_pos);
|
|
|
+ auto w_pos_h = cam_mat * to_homo(c_pos);
|
|
|
auto w_pos = from_homo(w_pos_h);
|
|
|
cursor_pos = w_pos;
|
|
|
}
|