Added voxel raycasting and voxel chunk access

This commit is contained in:
Simon Lübeß
2021-03-02 22:07:21 +01:00
parent cbfbd449ff
commit 488d2a55c4
5 changed files with 306 additions and 263 deletions
+3
View File
@@ -1,3 +1,5 @@
using GlitchyEngine.Math;
namespace Sandbox.VoxelFun
{
public struct VoxelChunk
@@ -7,6 +9,7 @@ namespace Sandbox.VoxelFun
public const int SizeZ = 16;
public const Point3 Size = .(SizeX, SizeY, SizeZ);
public const Vector3 VectorSize = .(SizeX, SizeY, SizeZ);
public uint8[SizeX][SizeY][SizeZ] Data;
}