Skip to content

Commit

Permalink
fix: blit shader example's position and tex_coords
Browse files Browse the repository at this point in the history
  • Loading branch information
curryyzheng committed Feb 11, 2022
1 parent 48f8811 commit c5ce3f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/examples/mipmap/blit.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
f32(x) * 2.0,
f32(y) * 2.0
f32(x),
f32(y)
);
out.position = vec4<f32>(
tc.x * 2.0 - 1.0,
Expand Down

0 comments on commit c5ce3f3

Please sign in to comment.