Fix MSAA blit vertex shader to match `wgpu` NDC
This commit is contained in:
parent
b23945c78a
commit
b44f14e186
|
@ -3,12 +3,12 @@
|
||||||
layout(location = 0) out vec2 o_Uv;
|
layout(location = 0) out vec2 o_Uv;
|
||||||
|
|
||||||
const vec2 positions[6] = vec2[6](
|
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)
|
vec2(-1.0, 1.0),
|
||||||
|
vec2(1.0, 1.0),
|
||||||
|
vec2(1.0, -1.0)
|
||||||
);
|
);
|
||||||
|
|
||||||
const vec2 uvs[6] = vec2[6](
|
const vec2 uvs[6] = vec2[6](
|
||||||
|
|
Binary file not shown.
|
@ -248,7 +248,7 @@ impl Frame {
|
||||||
.transforms
|
.transforms
|
||||||
.current
|
.current
|
||||||
.raw
|
.raw
|
||||||
.pre_rotate(lyon::math::Angle::radians(angle));
|
.pre_rotate(lyon::math::Angle::radians(-angle));
|
||||||
self.transforms.current.is_identity = false;
|
self.transforms.current.is_identity = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue