New Atlas + Texture Pipeline

This commit is contained in:
MDietermann
2026-05-31 20:32:46 +02:00
parent ab8816e27c
commit 4e14786668
10 changed files with 26 additions and 20 deletions

View File

@@ -7,10 +7,10 @@ public sealed class GrassBlock : IBlock
public bool IsOpaque => true;
public bool IsSolid => true;
public int GetTextureIndex(BlockFace face) => face switch
public TileCoord GetTextureTile(BlockFace face) => face switch
{
BlockFace.Top => 0, // grass top
BlockFace.Bottom => 1, // dirt
_ => 3 // grass side
BlockFace.Top => new(0, 1), // grass top
BlockFace.Bottom => new(0, 0), // dirt
_ => new(1, 1) // grass side
};
}