diff options
Diffstat (limited to '')
-rw-r--r-- | wgpu/src/transformation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/transformation.rs b/wgpu/src/transformation.rs index c991f330..ff3b1d00 100644 --- a/wgpu/src/transformation.rs +++ b/wgpu/src/transformation.rs @@ -16,9 +16,9 @@ impl Transformation { pub fn orthographic(width: u32, height: u32) -> Transformation { Transformation(Mat4::from_cols( Vec4::new(2.0 / width as f32, 0.0, 0.0, 0.0), - Vec4::new(0.0, 2.0 / height as f32, 0.0, 0.0), + Vec4::new(0.0, -2.0 / height as f32, 0.0, 0.0), Vec4::new(0.0, 0.0, -1.0, 0.0), - Vec4::new(-1.0, -1.0, 0.0, 1.0) + Vec4::new(-1.0, 1.0, 0.0, 1.0) )) } |