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
@ -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…
Reference in New Issue
Block a user