From 37b90fe6b409cea8b52088bfea537e9d5e27c626 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Sun, 12 Apr 2020 23:51:04 -0700 Subject: [PATCH] Fix transform for wgpu 0.5 (#66) --- src/renderers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers.rs b/src/renderers.rs index f8f3f07..2746a23 100644 --- a/src/renderers.rs +++ b/src/renderers.rs @@ -44,7 +44,7 @@ impl Renderer { #[rustfmt::skip] let transform: [f32; 16] = [ 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, 0.0, 1.0, ]; @@ -191,7 +191,7 @@ impl RenderPass for Renderer { #[rustfmt::skip] let transform: [f32; 16] = [ 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, 0.0, 1.0, ];