Skip to content

Commit

Permalink
Rename camera.projection_matrix to .clip_from_view
Browse files Browse the repository at this point in the history
Addresses Bevy [13489](bevyengine/bevy#13489)
  • Loading branch information
zhaop committed Jun 24, 2024
1 parent 57657df commit 4c8e36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/transform-gizmo-bevy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ fn update_gizmos(
Pos2::new(viewport.max.x, viewport.max.y),
);

let projection_matrix = camera.projection_matrix();
let projection_matrix = camera.clip_from_view();

let view_matrix = camera_transform.compute_matrix().inverse();

Expand Down

0 comments on commit 4c8e36d

Please sign in to comment.