OrthographicProjection.scaling_mode is not just for resize (#11024)

Current comment is somewhat misleading: one may assume the field is used
only when window is resized.
This commit is contained in:
Stepan Koltsov 2023-12-19 18:01:53 +00:00 committed by GitHub
parent 7d2e6cb468
commit 4852233298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,