Skip to content

Commit

Permalink
Fix pbr example camera scale (bevyengine#15977)
Browse files Browse the repository at this point in the history
# 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`
  • Loading branch information
rparrett authored Oct 18, 2024
1 parent eb19a9e commit 624f573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/3d/pbr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}),
Expand Down

0 comments on commit 624f573

Please sign in to comment.