Skip to content

Commit

Permalink
MapBorder cleanup rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Jan 7, 2024
1 parent 1469d1d commit b15b45f
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,21 @@ void onRender(WorldRender.PostWorldRenderEvent event) {
layer.vertex(matrices, boxX, y, boxZ).color(d).next();
}

// Add connecting lines
layer.vertex(matrices, boxX, minY, boxZ).color(c).next();
layer.vertex(matrices, boxX, maxY, boxZ).color(d).next();
layer.vertex(matrices, boxX, maxY, boxZ).color(c).next();
layer.vertex(matrices, boxX - 128, minY, boxZ).color(c).next();
layer.vertex(matrices, boxX - 128, minY, boxZ).color(c).next();
layer.vertex(matrices, boxX - 128, maxY, boxZ).color(d).next();
layer.vertex(matrices, boxX - 128, minY, boxZ - 128).color(c).next();
layer.vertex(matrices, boxX - 128, maxY, boxZ - 128).color(d).next();

layer.vertex(matrices, boxX - 128, maxY, boxZ).color(c).next();
layer.vertex(matrices, boxX, minY, boxZ - 128).color(c).next();
layer.vertex(matrices, boxX, minY, boxZ - 128).color(c).next();
layer.vertex(matrices, boxX, maxY, boxZ - 128).color(d).next();

layer.vertex(matrices, boxX, maxY, boxZ - 128).color(c).next();
layer.vertex(matrices, boxX - 128, minY, boxZ - 128).color(c).next();
layer.vertex(matrices, boxX - 128, minY, boxZ - 128).color(c).next();
layer.vertex(matrices, boxX - 128, maxY, boxZ - 128).color(d).next();

immediate.draw();
}
}

0 comments on commit b15b45f

Please sign in to comment.