mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
stabilize delays of chunks meshes building
This commit is contained in:
parent
f47ccd5f30
commit
88544183d0
13 changed files with 335 additions and 191 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "constants.hpp"
|
||||
#include "graphics/core/MeshData.hpp"
|
||||
#include "util/Buffer.hpp"
|
||||
|
||||
|
|
@ -51,3 +52,12 @@ struct ChunkMesh {
|
|||
SortingMeshData sortingMeshData;
|
||||
std::unique_ptr<Mesh<ChunkVertex> > sortedMesh;
|
||||
};
|
||||
|
||||
inline constexpr int VOXELS_BUFFER_PADDING = 2;
|
||||
|
||||
template<int, int, int> class StaticVoxelsVolume;
|
||||
|
||||
using VoxelsRenderVolume = StaticVoxelsVolume<
|
||||
CHUNK_W + VOXELS_BUFFER_PADDING * 2,
|
||||
CHUNK_H,
|
||||
CHUNK_D + VOXELS_BUFFER_PADDING * 2>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue