I'm looking to recreate the beacon rendering effect to act as a visible waypoint marker.
I have created the block, blockentity and blockentityrenderer all based on the vanilla beacon code.
This works as expected and the light beam is rendered. However, it only renders whilst the source block is within the players 'viewport', if the player looks up to such a degree that the source block is below the line of sight, the beam stops rendering.
It doesn't matter if the block is actually visible to the player, it can be hidden behind other blocks and still renders as long as the source block would be in the viewport of the player.
I've also checked TheEndGatewayRenderer which calls the BeaconRenderer.renderBeaconBeam and I've tried implementing it this way but this also has the same problem.
I'm running out of things to check and just wondered if there is something else that needs to be done to keep a block rendering even when it's not in view? Any pointers greatly appreciated.
Example repo showing the issue