fix rare grass-only chunk meshes

This commit is contained in:
MihailRis 2024-10-24 09:19:58 +03:00
parent 79e8528005
commit 2bd52ef616
3 changed files with 15 additions and 1 deletions

View file

@ -33,6 +33,7 @@ class BlocksRenderer {
size_t capacity;
int voxelBufferPadding = 2;
bool overflow = false;
bool cancelled = false;
const Chunk* chunk = nullptr;
std::unique_ptr<VoxelsVolume> voxelsBuffer;
@ -149,4 +150,8 @@ public:
std::shared_ptr<Mesh> render(const Chunk* chunk, const ChunksStorage* chunks);
std::shared_ptr<Mesh> createMesh();
VoxelsVolume* getVoxelsBuffer() const;
bool isCancelled() const {
return cancelled;
}
};