Skip to content

Commit

Permalink
Extraneous comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-ie committed Sep 9, 2024
1 parent 038368a commit 095da01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/camera/projection_zoom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ fn zoom(
orthographic.scaling_mode = ScalingMode::FixedVertical(zoom_level);
}
Projection::Perspective(perspective) => {
// Adjust the field of view, but keep it within our stated range. Note that we divide
// by an arbitrary factor here to prevent the perspective FOV change from seeming much
// faster than its orthographic equivalent.
// Adjust the field of view, but keep it within our stated range.
perspective.fov = (perspective.fov
+ camera_settings.perspective_zoom_speed * mouse_wheel_input.delta.y)
.clamp(
Expand Down

0 comments on commit 095da01

Please sign in to comment.