Light overlay will lose precision and become distorted the further away from the world origin the player travels. This ranges from the overlay flickering as the camera pans (100k) to complete distortion as shown in the attached image (10mil).
This is especially impactful for players on PVP servers where building bases in the millions is a requirement to stay secure.
Steps to Reproduce:
Tested on Fabric 1.21.1
Enable overlay
Teleport to X:1_000_000 or another coordinate far from the world origin
Overlay will be noticeably distorted
Possible Solution:
I believe this can be solved by translating the matrices so that the render origin is offset by subtracting the camera position. The loss of precision caused by large coordinates could be eliminated by such an offset.
Light overlay will lose precision and become distorted the further away from the world origin the player travels. This ranges from the overlay flickering as the camera pans (100k) to complete distortion as shown in the attached image (10mil).
This is especially impactful for players on PVP servers where building bases in the millions is a requirement to stay secure.
Steps to Reproduce: Tested on Fabric 1.21.1
Possible Solution: I believe this can be solved by translating the matrices so that the render origin is offset by subtracting the camera position. The loss of precision caused by large coordinates could be eliminated by such an offset.