Decoupled Chunk data loading/generation and geometry generation

This commit is contained in:
Simon Lübeß
2021-03-19 18:06:40 +01:00
parent a0373366f6
commit 72400e873d
5 changed files with 222 additions and 22 deletions
+4 -1
View File
@@ -408,6 +408,9 @@ namespace Sandbox.VoxelFun
if(intersectInfo.Face != .None)
{
if(rightHandBlock == null)
rightHandBlock = Blocks.Stone;
if(Input.IsMouseButtonPressing(.LeftButton))
{
_world.BreakBlock(intersectInfo.Coordinate);
@@ -427,7 +430,7 @@ namespace Sandbox.VoxelFun
Renderer.EndScene();
}
Block rightHandBlock = Blocks.Stone;
Block rightHandBlock;
struct IntersectionInfo
{