From 19a0637ce7fae5a9c8dfd91509039e1629e736f1 Mon Sep 17 00:00:00 2001 From: Yusuf Tulek Date: Tue, 12 May 2026 15:04:17 +0300 Subject: [PATCH] recalculate normals --- Runtime/SplineRoad.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/SplineRoad.cs b/Runtime/SplineRoad.cs index 878aee3..f9a3944 100644 --- a/Runtime/SplineRoad.cs +++ b/Runtime/SplineRoad.cs @@ -329,6 +329,7 @@ private void BuildMesh() m.SetTriangles(tris, 0); m.SetTriangles(trisB, 1); m.SetUVs(0, uvs); + m.RecalculateNormals(); _meshFilter.sharedMesh = m; } @@ -531,4 +532,4 @@ private void OnDrawGizmosSelected() } #endif } -} \ No newline at end of file +}