From 624f573443f6bd6bb8bcf716fb1289d66a15b35b Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Fri, 18 Oct 2024 00:24:31 -0700 Subject: [PATCH] Fix `pbr` example camera scale (#15977) # Objective Fixes #15976 ## Solution I haven't been following the recent camera changes but on a whim I inverted the scale and it restored the old behavior. It seems that a similar inversion was done when migrating the `pixel_grid_snap` example in #15976. ## Testing `cargo run --example pbr` --- examples/3d/pbr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/3d/pbr.rs b/examples/3d/pbr.rs index f6c12ef7da..fad4e1166c 100644 --- a/examples/3d/pbr.rs +++ b/examples/3d/pbr.rs @@ -111,7 +111,7 @@ fn setup( Camera3d::default(), Transform::from_xyz(0.0, 0.0, 8.0).looking_at(Vec3::default(), Vec3::Y), Projection::from(OrthographicProjection { - scale: 100., + scale: 0.01, scaling_mode: ScalingMode::WindowSize, ..OrthographicProjection::default_3d() }),