From 0f71dcbf1a5302bed5d5fb7e203a05786b827660 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Tue, 2 Jan 2024 19:27:22 +0000 Subject: [PATCH] Simplify examples/3d/orthographic (#11045) Current example may mislead into thinking both parameters are mandatory to make orthographic projection work. --- examples/3d/orthographic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/3d/orthographic.rs b/examples/3d/orthographic.rs index c34e06a788..32447fd6a8 100644 --- a/examples/3d/orthographic.rs +++ b/examples/3d/orthographic.rs @@ -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(),