diff --git a/ChunkMesh.cs b/ChunkMesh.cs index 0b64e3b..560657a 100644 --- a/ChunkMesh.cs +++ b/ChunkMesh.cs @@ -15,14 +15,12 @@ namespace Voxel public bool NeedsUpdate = false; public int Length = 0; private List _faces; - public int SSBO; public ChunkMesh(int x, int y) { _packedData = new byte[0]; X = x; Y = y; - SSBO = GL.GenBuffer(); } public void SetFaces(List faces) diff --git a/Program.cs b/Program.cs index 9a7c79a..5d2f803 100644 --- a/Program.cs +++ b/Program.cs @@ -15,16 +15,18 @@ internal class Program window.Player = player; - for (int x = 0; x < 2; x++) + for (int x = 0; x < 4; x++) { - for (int y = 0; y < 2; y++) + for (int y = 0; y < 4; y++) { - Chunk chunk = new Chunk(1+ x, 1 +y); + Chunk chunk = new Chunk(x, y); world.AddChunk(chunk); } } + // xmax ymin gör bugg + Renderer.SetWorld(world); window.Run();