From d807ef367e0257ba54f8cf38708a7a61e28a4acb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 7 Apr 2020 05:48:21 +0200 Subject: Update `wgpu` to `0.5` in `iced_wgpu` :tada: --- wgpu/src/transformation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wgpu/src/transformation.rs') 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) )) } -- cgit