From 25193c09a78a91e105dc38b18944755bc8ac40a4 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Fri, 11 Sep 2026 17:52:06 -0700 Subject: Fix some formatting in shape.vert.slang --- shaders/shape.vert.slang | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'shaders/shape.vert.slang') 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; } -- cgit v1.2.3