edited rendering

This commit is contained in:
maxwes08
2025-09-09 13:31:44 +02:00
parent b6655d71d9
commit ce456b6b26
2 changed files with 5 additions and 5 deletions

View File

@@ -15,14 +15,12 @@ namespace Voxel
public bool NeedsUpdate = false;
public int Length = 0;
private List<FaceData> _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<FaceData> faces)

View File

@@ -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();