diff options
author | 2020-04-07 05:48:21 +0200 | |
---|---|---|
committer | 2020-04-07 05:48:21 +0200 | |
commit | d807ef367e0257ba54f8cf38708a7a61e28a4acb (patch) | |
tree | 1ee065aa7f47cc9a3e3e642c9b58576dd54d3327 /wgpu/src/transformation.rs | |
parent | 703beae05ec2988b9a6b15e84291ec818b37bf5b (diff) | |
download | iced-d807ef367e0257ba54f8cf38708a7a61e28a4acb.tar.gz iced-d807ef367e0257ba54f8cf38708a7a61e28a4acb.tar.bz2 iced-d807ef367e0257ba54f8cf38708a7a61e28a4acb.zip |
Update `wgpu` to `0.5` in `iced_wgpu` :tada:
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) )) } |