diff --git a/crates/bevy_render/src/camera/camera.rs b/crates/bevy_render/src/camera/camera.rs index 2de7ef9490bbde..e34b7913278d79 100644 --- a/crates/bevy_render/src/camera/camera.rs +++ b/crates/bevy_render/src/camera/camera.rs @@ -106,7 +106,7 @@ impl Default for Camera { impl Camera { /// Converts a physical size in this `Camera` to a logical size. #[inline] - pub fn physical_to_logical(&self, input: UVec2) -> Option { + pub fn to_logical(&self, physical_size: UVec2) -> Option { let scale = self.computed.target_info.as_ref()?.scale_factor; Some((input.as_dvec2() / scale).as_vec2()) }