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:
Stepan Koltsov 2024-01-02 19:27:22 +00:00 committed by GitHub
parent 1a2a184350
commit 0f71dcbf1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),