add centerOverlay (#1016)

This commit is contained in:
vcwdfca authored and GitHub committed 2026-08-31 19:21:39 +03:00
1 parent 7817640d96
commit 866b796411
1 file changed
+6
@@ -322,6 +322,12 @@ public class WorldOverlayRenderer implements IKeyStateTracker {
y1 -= intOffsetY;
y2 -= intOffsetY;
double centerX = (x1 + x2) / 2;
double centerZ = (z1 + z2) / 2;
tess.setColorRGBA_F(0.9F, 0.9F, 0, (float) dist);
tess.addVertex(centerX, y1, centerZ);
tess.addVertex(centerX, y2, centerZ);
tess.setColorRGBA_F(0, 0.9F, 0, 0.4F);
for (double y = (int) y1; y <= y2; y++) {