fix rare grass-only chunk meshes

This commit is contained in:
MihailRis
2024-10-24 09:19:58 +03:00
parent eb400e68ca
commit cbbc04edcf
3 changed files with 15 additions and 1 deletions
+5
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;
}
};