Skip to content

Commit 624f573

Browse files
authored
Fix pbr example camera scale (bevyengine#15977)
# Objective Fixes bevyengine#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 bevyengine#15976. ## Testing `cargo run --example pbr`
1 parent eb19a9e commit 624f573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/3d/pbr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn setup(
111111
Camera3d::default(),
112112
Transform::from_xyz(0.0, 0.0, 8.0).looking_at(Vec3::default(), Vec3::Y),
113113
Projection::from(OrthographicProjection {
114-
scale: 100.,
114+
scale: 0.01,
115115
scaling_mode: ScalingMode::WindowSize,
116116
..OrthographicProjection::default_3d()
117117
}),

0 commit comments

Comments
 (0)