-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support pan, rotate and zoom camera operations (#108)
* Support pan, rotate and zoom camera operations * Add comments to Camera struct fields. * Use quartenion rotation * Adjust the conversion from mouse events to viewport change * Fix CI * Apply suggestions from code review * get rotation working * get pan working, fix making deltas relative to window size * get zoom working * make zooming work in ortho mode * use MIN_ZOOM_FACTOR * extend OrbitCamera::new with init_pos * make clippy happy * renormalize Quat after multiplication inside OrbitCamera * revisit near and far clip values * optimize a bit * Update crates/viewer/src/camera.rs --------- Co-authored-by: Máté Kovács <[email protected]> Co-authored-by: Mate Kovacs <[email protected]> Co-authored-by: Brian Schwind <[email protected]>
- Loading branch information
1 parent
edf0924
commit ff63a99
Showing
2 changed files
with
159 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters