mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-21 04:42:17 +00:00
Avoid checking frustum visibility of infinite bounding boxes
This commit is contained in:
1 parent
c66bf8658e
commit
f9b9873637
2 files changed
+8
-3
No files matched your search
@@ -348,7 +348,11 @@ public class SodiumWorldRenderer {
|
||||
}
|
||||
|
||||
private boolean checkBEVisibility(TileEntity entity) {
|
||||
return frustum.isBoundingBoxInFrustum(entity.getRenderBoundingBox());
|
||||
var aabb = entity.getRenderBoundingBox();
|
||||
if (aabb == TileEntity.INFINITE_EXTENT_AABB) {
|
||||
return true;
|
||||
}
|
||||
return frustum.isBoundingBoxInFrustum(aabb);
|
||||
}
|
||||
|
||||
private void renderTE(TileEntity tileEntity, int pass, float partialTicks) {
|
||||
|
||||
Reference in new issue
Block a user