Skip to content

Commit

Permalink
Simplify examples/3d/orthographic (#11045)
Browse files Browse the repository at this point in the history
Current example may mislead into thinking both parameters are mandatory
to make orthographic projection work.
  • Loading branch information
stepancheg authored Jan 2, 2024
1 parent 1a2a184 commit 0f71dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/3d/orthographic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fn setup(
// camera
commands.spawn(Camera3dBundle {
projection: OrthographicProjection {
scale: 3.0,
scaling_mode: ScalingMode::FixedVertical(2.0),
// 6 world units per window height.
scaling_mode: ScalingMode::FixedVertical(6.0),
..default()
}
.into(),
Expand Down

0 comments on commit 0f71dcb

Please sign in to comment.