mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Updated .gitignore and added Chunk loading and saving
This commit is contained in:
@@ -190,17 +190,16 @@ namespace Sandbox.VoxelFun
|
||||
blendDesc.RenderTarget[0] = .(true, .SourceAlpha, .InvertedSourceAlpha, .Add, .SourceAlpha, .InvertedSourceAlpha, .Add, .All);
|
||||
_alphaBlendState = new BlendState(_context, blendDesc);
|
||||
_opaqueBlendState = new BlendState(_context, .Default);
|
||||
|
||||
|
||||
_chunkManager = new ChunkManager(_context, _vertexLayout);
|
||||
_chunkManager.Texture = _texture..AddRef();
|
||||
_chunkManager.TextureEffect = _textureEffect..AddRef();
|
||||
|
||||
_world = new World();
|
||||
if(World.CreateWorld("test", 1337, _world) case .Err(.WorldAlreadyExists))
|
||||
{
|
||||
World.LoadWorld("test", _world);
|
||||
}
|
||||
|
||||
_chunkManager = new ChunkManager(_context, _vertexLayout, _world);
|
||||
_chunkManager.Texture = _texture..AddRef();
|
||||
_chunkManager.TextureEffect = _textureEffect..AddRef();
|
||||
}
|
||||
/*
|
||||
void GenerateTerrain(ref VoxelChunk vc)
|
||||
|
||||
Reference in New Issue
Block a user