Culling, rendering improvements and optimizations, block removing test.

This commit is contained in:
2025-09-02 22:43:35 +02:00
parent a9cab195b6
commit 00713db79e
16 changed files with 390 additions and 210 deletions

View File

@@ -2,22 +2,24 @@
namespace Voxel
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FaceData
{
public Orientation Facing;
public uint X, Y, Z;
public Texture Texture;
public byte X, Y, Z;
public Textures Texture;
public byte LightLevel;
public uint[] Pack()
public byte[] Pack()
{
return new uint[]
return new byte[]
{
X,
Y,
Z,
(uint)Facing,
(uint)Texture
(byte)Facing,
(byte)Texture,
LightLevel,
0,0 // two bits empty
};
}
}