Skip to content

Commit

Permalink
OrthographicProjection.scaling_mode is not just for resize (#11024)
Browse files Browse the repository at this point in the history
Current comment is somewhat misleading: one may assume the field is used
only when window is resized.
  • Loading branch information
stepancheg authored Dec 19, 2023
1 parent 7d2e6cb commit 4852233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/camera/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub struct OrthographicProjection {
/// Defaults to `(0.5, 0.5)`, which makes scaling affect opposite sides equally, keeping the center
/// point of the viewport centered.
pub viewport_origin: Vec2,
/// How the projection will scale when the viewport is resized.
/// How the projection will scale to the viewport.
///
/// Defaults to `ScalingMode::WindowSize(1.0)`
pub scaling_mode: ScalingMode,
Expand Down

0 comments on commit 4852233

Please sign in to comment.