From cf7061fd58189827edbf4ef3915636a6fd537d7c Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sun, 15 Jun 2025 15:14:06 +0300 Subject: [PATCH] fix: shape2D triangulation order changed --- Engine.Core/Primitives/Shape2D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine.Core/Primitives/Shape2D.cs b/Engine.Core/Primitives/Shape2D.cs index 7a72dd0..4a8ba84 100644 --- a/Engine.Core/Primitives/Shape2D.cs +++ b/Engine.Core/Primitives/Shape2D.cs @@ -122,7 +122,7 @@ public class Shape2D(List vertices) : IEnumerable triangles.Clear(); for (int i = 2; i < shape.Vertices.Count; i++) - triangles.Add(new Triangle(shape[0], shape[i - 1], shape[i])); + triangles.Add(new Triangle(shape[0], shape[i], shape[i - 1])); } ///