Changed WFC acceptance to 100% connectivity and added test case to test the layer generation.

This commit is contained in:
2026-05-11 21:23:51 +02:00
parent 05d7df753f
commit 07cdd0a46f
2 changed files with 61 additions and 1 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ public partial class Layer : Node3D
if (safetyCounter == layerSize * layerSize) return false;
}
if (updateFailed) return false;
if (!WFC.IsMapConnected(tiles, 0.8f)) return false;
if (!WFC.IsMapConnected(tiles, 1f)) return false;
return true;
}