mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
extend that one optimization
This commit is contained in:
parent
3c94061fd3
commit
5f71522653
1 changed files with 2 additions and 1 deletions
|
|
@ -587,7 +587,8 @@ SortingMeshData BlocksRenderer::renderTranslucent(
|
|||
|
||||
// additional powerful optimization
|
||||
auto size = aabb.size();
|
||||
if (glm::abs(size.y) < 0.01f && sortingMesh.entries.size() > 1) {
|
||||
if ((size.y < 0.01f || size.x < 0.01f || size.z < 0.01f) &&
|
||||
sortingMesh.entries.size() > 1) {
|
||||
SortingMeshEntry newEntry {
|
||||
sortingMesh.entries[0].position,
|
||||
util::Buffer<float>(totalSize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue