We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25bcd61 commit dfb7e2cCopy full SHA for dfb7e2c
crates/shader-crate-template/src/lib.rs
@@ -28,7 +28,10 @@ pub fn vertex(
28
out_uv: &mut Vec2,
29
#[spirv(position)] clip_pos: &mut Vec4,
30
) {
31
- let index = vertex_id as usize % 6;
+ let mut index = vertex_id as usize % 6;
32
+ if (vertex_id == 0) == false {
33
+ index = 3;
34
+ }
35
*out_uv = UV_COORD_QUAD_CCW[index];
36
*clip_pos = CLIP_SPACE_COORD_QUAD_CCW[index];
37
}
0 commit comments