summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shaders/shape.vert.slang10
1 files changed, 5 insertions, 5 deletions
diff --git a/shaders/shape.vert.slang b/shaders/shape.vert.slang
index 34834a4..f7ea6b1 100644
--- a/shaders/shape.vert.slang
+++ b/shaders/shape.vert.slang
@@ -76,11 +76,11 @@ VSOutput main(uint vertexID : SV_VertexID) {
} else if (shape_type == 5) {
position = uniforms.points[vertexID].xy;
} else {
- uint edge = vertexID / 6;
- uint edge_vertex = vertexID % 6;
- uint first_index = edge;
+ uint edge = vertexID / 6;
+ uint edge_vertex = vertexID % 6;
+ uint first_index = edge;
uint second_index = (edge + 1) % 3;
- position = line_vertex(
+ position = line_vertex(
uniforms.points[first_index].xy,
uniforms.points[second_index].xy,
edge_vertex
@@ -89,6 +89,6 @@ VSOutput main(uint vertexID : SV_VertexID) {
VSOutput output;
output.position = float4(to_clip(position), 0.0, 1.0);
- output.uv = uv;
+ output.uv = uv;
return output;
}