Backlight for tranparent blocks

This commit is contained in:
MihailRis
2023-11-22 18:58:40 +03:00
parent d2c87f4ba5
commit b472626d8d
5 changed files with 25 additions and 14 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ void BlocksRenderer::render(const voxel* voxels, int atlas_size) {
Mesh* BlocksRenderer::render(const Chunk* chunk, int atlas_size, const ChunksStorage* chunks) {
this->chunk = chunk;
voxelsBuffer->setPosition(chunk->x * CHUNK_W - 1, 0, chunk->z * CHUNK_D - 1);
chunks->getVoxels(voxelsBuffer);
chunks->getVoxels(voxelsBuffer, true);
overflow = false;
vertexOffset = 0;
indexOffset = indexSize = 0;