Update wgpu to 0.5 in iced_wgpu 🎉
This commit is contained in:
parent
703beae05e
commit
d807ef367e
12 changed files with 313 additions and 268 deletions
|
|
@ -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)
|
||||
))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue