mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Merge #594
594: Fix mipmap example which was y-flipped r=kvark a=Uriopass Mipmap rendering was y-flipped, hence making one out of every two mipmaps wrong. See:  (look at the black dots) Co-authored-by: Paris DOUADY <paris.douady@hotmail.fr>
This commit is contained in:
@@ -11,5 +11,6 @@ void main() {
|
||||
case 3: tc = vec2(0.0, 1.0); break;
|
||||
}
|
||||
v_TexCoord = tc;
|
||||
gl_Position = vec4(tc * 2.0 - 1.0, 0.5, 1.0);
|
||||
vec2 pos = tc * 2.0 - 1.0;
|
||||
gl_Position = vec4(pos.x, -pos.y, 0.5, 1.0);
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user