Skip to content

Commit 909f4c6

Browse files
committed
Scaling fixes.
1 parent fd984e8 commit 909f4c6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

crates/processing_render/src/graphics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ impl CameraProjection for ProcessingProjection {
149149
}
150150

151151
fn update(&mut self, width: f32, height: f32) {
152-
self.width = width;
153-
self.height = height;
152+
// in order to preserve our coordinate system where 1px in world space = 1px on the render
153+
// target, we ignore bevy's update here
154154
}
155155

156156
fn far(&self) -> f32 {
@@ -240,7 +240,6 @@ pub fn create(
240240
near: 0.0,
241241
far: 1000.0,
242242
}),
243-
Msaa::Off,
244243
Transform::from_xyz(0.0, 0.0, 999.9),
245244
render_layer,
246245
CommandBuffer::new(),

0 commit comments

Comments
 (0)