We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558a35a commit 9cd42f3Copy full SHA for 9cd42f3
crates/bevy_render/src/camera/camera.rs
@@ -593,7 +593,7 @@ impl Camera {
593
594
// Rescale by the rendering target's scaling factor if we have it.
595
let scale_factor = self.target_scaling_factor().unwrap_or(1.);
596
- viewport_position = viewport_position / scale_factor;
+ viewport_position /= scale_factor;
597
598
// Flip the Y co-ordinate origin from the top to the bottom.
599
viewport_position.y = target_size.y - viewport_position.y;
0 commit comments