Culling, rendering improvements and optimizations, block removing test.
This commit is contained in:
16
FaceData.cs
16
FaceData.cs
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user