better world gen

This commit is contained in:
maxwes08
2025-09-29 10:55:37 +02:00
parent 9a61dfd74c
commit 38dccf0a84
7 changed files with 2653 additions and 22 deletions

View File

@@ -67,10 +67,10 @@ namespace Voxel
{
var orientations = new List<Orientation>();
if (localX == 0) orientations.Add(Orientation.West);
if (localX == size - 1) orientations.Add(Orientation.East);
if (localZ == size - 1) orientations.Add(Orientation.South); // assuming Z+ is North
if (localZ == 0) orientations.Add(Orientation.North);
if (localX == size - 1) orientations.Add(Orientation.West);
if (localX == 0) orientations.Add(Orientation.East);
if (localZ == size - 1) orientations.Add(Orientation.North);
if (localZ == 0) orientations.Add(Orientation.South);
return orientations;
}
@@ -94,7 +94,6 @@ namespace Voxel
if (chunk.Neighbors.TryGetValue(orientation, out var neighbor) && neighbor != null)
{
neighbor.UpdateChunkMesh();
Console.WriteLine($"Updated neighbor at {orientation}");
}
}
}