diff --git a/wgpu/src/shader/blit.vert b/wgpu/src/shader/blit.vert index 1c081b9e..899cd39d 100644 --- a/wgpu/src/shader/blit.vert +++ b/wgpu/src/shader/blit.vert @@ -3,12 +3,12 @@ layout(location = 0) out vec2 o_Uv; const vec2 positions[6] = vec2[6]( - vec2(-1.0, -1.0), vec2(-1.0, 1.0), - vec2(1.0, 1.0), vec2(-1.0, -1.0), vec2(1.0, -1.0), - vec2(1.0, 1.0) + vec2(-1.0, 1.0), + vec2(1.0, 1.0), + vec2(1.0, -1.0) ); const vec2 uvs[6] = vec2[6]( diff --git a/wgpu/src/shader/blit.vert.spv b/wgpu/src/shader/blit.vert.spv index ad697d48..e0b436ce 100644 Binary files a/wgpu/src/shader/blit.vert.spv and b/wgpu/src/shader/blit.vert.spv differ diff --git a/wgpu/src/widget/canvas/frame.rs b/wgpu/src/widget/canvas/frame.rs index 24fd0d7e..de4717f1 100644 --- a/wgpu/src/widget/canvas/frame.rs +++ b/wgpu/src/widget/canvas/frame.rs @@ -248,7 +248,7 @@ impl Frame { .transforms .current .raw - .pre_rotate(lyon::math::Angle::radians(angle)); + .pre_rotate(lyon::math::Angle::radians(-angle)); self.transforms.current.is_identity = false; }