From c5ce3f3a8a4fb25b7c2c552b4902722f050bf001 Mon Sep 17 00:00:00 2001 From: curryyzheng Date: Fri, 11 Feb 2022 11:14:33 +0800 Subject: [PATCH] fix: blit shader example's position and tex_coords --- wgpu/examples/mipmap/blit.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/examples/mipmap/blit.wgsl b/wgpu/examples/mipmap/blit.wgsl index 80f76b1f6ed..d7a274bd945 100644 --- a/wgpu/examples/mipmap/blit.wgsl +++ b/wgpu/examples/mipmap/blit.wgsl @@ -9,8 +9,8 @@ fn vs_main(@builtin(vertex_index) vertex_index: u32) -> VertexOutput { let x = i32(vertex_index) / 2; let y = i32(vertex_index) & 1; let tc = vec2( - f32(x) * 2.0, - f32(y) * 2.0 + f32(x), + f32(y) ); out.position = vec4( tc.x * 2.0 - 1.0,