fix blocks selection with semi-transparent blocks

This commit is contained in:
MihailRis
2024-11-16 09:30:02 +03:00
parent b28bcf052b
commit 171cbb48d0
2 changed files with 12 additions and 2 deletions
+4 -1
View File
@@ -210,11 +210,14 @@ void ChunksRenderer::drawChunks(
visibleChunks += drawChunk(indices[i].index, camera, shader, culling);
}
//}
drawSortedMeshes(camera, shader);
}
void ChunksRenderer::drawSortedMeshes(const Camera& camera, Shader& shader) {
timeutil::ScopeLogTimer log(444);
const auto& atlas = assets.require<Atlas>("blocks");
atlas.getTexture()->bind();
std::vector<const SortingMeshEntry*> entries;