Skip to content

Commit

Permalink
fix radial triangle add order(#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluefallsky committed Apr 28, 2024
1 parent 35b9985 commit 8674445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/Effects/Gradient2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public override void ModifyMesh(VertexHelper helper)

helper.AddVert(centralVertex);

for (int i = 1; i < steps; i++) helper.AddTriangle(i - 1, i, steps);
for (int i = 1; i < steps; i++) helper.AddTriangle(i, i-1, steps);
helper.AddTriangle(0, steps - 1, steps);
}

Expand Down

0 comments on commit 8674445

Please sign in to comment.