feat: derive atlas tile size from loaded texture dimensions

This commit is contained in:
MDietermann
2026-05-31 21:43:53 +02:00
parent 50f2bc4221
commit c81cd3c561
4 changed files with 46 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ public sealed class Game : GameWindow
this._world.SetChunk(new Vector3i(x, 0, z), this.BuildChunk());
}
ChunkMesher mesher = new();
ChunkMesher mesher = new(this._texture.Width, this._texture.Height);
foreach ((Vector3i pos, Chunk chunk) in this._world)
{
Vector3i origin = pos * Chunk.Size;