Skip to content

Commit

Permalink
Merge branch 'main' into implement_angle_type
Browse files Browse the repository at this point in the history
  • Loading branch information
gabsi26 authored May 23, 2022
2 parents 0b1384a + 0f3199d commit beb5736
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 33 deletions.
58 changes: 29 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/fj-viewer/src/graphics/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ impl Transform {
///
/// The returned transform is used for transforming vertices on the GPU.
pub fn for_vertices(camera: &Camera, aspect_ratio: f64) -> Self {
let field_of_view_in_y = camera.field_of_view_in_x() / aspect_ratio;
let field_of_view_in_y = 2.
* ((camera.field_of_view_in_x() / 2.).tan() / aspect_ratio).atan();

let transform = camera.camera_to_model().project_to_array(
aspect_ratio,
Expand Down
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.60.0"
components = [ "rustfmt", "clippy" ]
channel = "1.61.0"
components = ["rustfmt", "clippy"]
2 changes: 1 addition & 1 deletion tools/release-operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cargo_metadata = "0.14.2"
cmd_lib = "1.3.0"
env_logger = "0.9.0"
log = "0.4.17"
regex = "1.5.5"
regex = "1.5.6"
secstr = "0.5.0"
semver = "1.0.9"
serde_json = "1.0.81"
Expand Down

0 comments on commit beb5736

Please sign in to comment.