Skip to content

Commit

Permalink
Explain OrthographicProjection.scale
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Dec 19, 2023
1 parent 05b0026 commit 786c810
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/bevy_render/src/camera/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,14 @@ pub struct OrthographicProjection {
///
/// Defaults to `ScalingMode::WindowSize(1.0)`
pub scaling_mode: ScalingMode,
/// Scales the projection in world units.
/// Scales the projection.
///
/// As scale increases, the apparent size of objects decreases, and vice versa.
///
/// Defaults to `1.0`
/// Note scaling can be set by [`scaling_mode`](Self::scaling_mode) as well.
/// This parameters is scale on top of that.
///
/// Defaults to `1.0`.
pub scale: f32,
/// The area that the projection covers relative to `viewport_origin`.
///
Expand Down

0 comments on commit 786c810

Please sign in to comment.