Fix MSAA blit vertex shader to match `wgpu` NDC

This commit is contained in:
Héctor Ramón Jiménez 2020-04-16 14:54:29 +02:00
parent b23945c78a
commit b44f14e186
3 changed files with 4 additions and 4 deletions

View File

@ -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](

Binary file not shown.

View File

@ -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;
}