% 6
This commit is contained in:
1 parent
35562dd3fb
commit
bfaf4653f0
3 files changed
+92
-5
No files matched your search
@@ -29,7 +29,7 @@ static const float2 square[6] = {
|
||||
VSOutput main(VSInput input, uint vertex_index : SV_VertexID) {
|
||||
VSOutput output;
|
||||
|
||||
float2 vertex_pos = square[vertex_index];
|
||||
float2 vertex_pos = square[vertex_index % 6];
|
||||
float2 final_pos = (vertex_pos * input.scale) + input.pos;
|
||||
|
||||
output.pos = float4(final_pos, 0.0, 1.0);
|
||||
|
||||
Reference in new issue
Block a user