mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix blocks selection with semi-transparent blocks
This commit is contained in:
parent
b28bcf052b
commit
171cbb48d0
2 changed files with 12 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue