Fix transform for wgpu 0.5 (#66)
This commit is contained in:
parent
246375f0e9
commit
37b90fe6b4
|
@ -44,7 +44,7 @@ impl Renderer {
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
let transform: [f32; 16] = [
|
let transform: [f32; 16] = [
|
||||||
1.0, 0.0, 0.0, 0.0,
|
1.0, 0.0, 0.0, 0.0,
|
||||||
0.0, 1.0, 0.0, 0.0,
|
0.0, -1.0, 0.0, 0.0,
|
||||||
0.0, 0.0, 1.0, 0.0,
|
0.0, 0.0, 1.0, 0.0,
|
||||||
0.0, 0.0, 0.0, 1.0,
|
0.0, 0.0, 0.0, 1.0,
|
||||||
];
|
];
|
||||||
|
@ -191,7 +191,7 @@ impl RenderPass for Renderer {
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
let transform: [f32; 16] = [
|
let transform: [f32; 16] = [
|
||||||
sw, 0.0, 0.0, 0.0,
|
sw, 0.0, 0.0, 0.0,
|
||||||
0.0, sh, 0.0, 0.0,
|
0.0, -sh, 0.0, 0.0,
|
||||||
0.0, 0.0, 1.0, 0.0,
|
0.0, 0.0, 1.0, 0.0,
|
||||||
0.0, 0.0, 0.0, 1.0,
|
0.0, 0.0, 0.0, 1.0,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue