Block entities render twice if shouldRenderOffScreen returns true and the block entity is in view
If a block entity is set to render even if its off screen (shouldRenderOffScreen returns true / block entity is contained in LevelRenderer globalBlockEntities), it will also be rendered by the iteration through block entities in visible render sections.
This means that if a block entity is in a visible render section and also should render off screen it will render twice.
I noticed this while trying to render a large transparent box around a block entity, as it was too opaque until I moved my camera away from the block entity.
2024-11-22, 09:17 PM
2024-11-25, 09:46 AM
2024-11-25, 09:41 AM
4
1
BlockEntity, LevelRenderer, Rendering
-