mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
Simplify examples/3d/orthographic (#11045)
Current example may mislead into thinking both parameters are mandatory to make orthographic projection work.
This commit is contained in:
parent
1a2a184350
commit
0f71dcbf1a
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue