mirror of
https://github.com/bevyengine/bevy
synced 2025-02-17 22:48:38 +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
|
// camera
|
||||||
commands.spawn(Camera3dBundle {
|
commands.spawn(Camera3dBundle {
|
||||||
projection: OrthographicProjection {
|
projection: OrthographicProjection {
|
||||||
scale: 3.0,
|
// 6 world units per window height.
|
||||||
scaling_mode: ScalingMode::FixedVertical(2.0),
|
scaling_mode: ScalingMode::FixedVertical(6.0),
|
||||||
..default()
|
..default()
|
||||||
}
|
}
|
||||||
.into(),
|
.into(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue