mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Allow radius highlights to be visible from below, useful with floating flowers.
This commit is contained in:
1 parent
e4cd803425
commit
7bb36d49fb
1 file changed
+4
@@ -112,6 +112,7 @@ public final class BlockHighlightRenderHandler {
|
||||
double renderPosY = Minecraft.getInstance().getRenderManager().renderPosY;
|
||||
double renderPosZ = Minecraft.getInstance().getRenderManager().renderPosZ;
|
||||
|
||||
GlStateManager.disableCull();
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translated(aabb.minX - renderPosX, aabb.minY - renderPosY, aabb.minZ - renderPosZ);
|
||||
|
||||
@@ -146,6 +147,7 @@ public final class BlockHighlightRenderHandler {
|
||||
|
||||
GlStateManager.color4f(1, 1, 1, 1);
|
||||
GlStateManager.popMatrix();
|
||||
GlStateManager.enableCull();
|
||||
}
|
||||
|
||||
private static void renderCircle(BlockPos center, double radius) {
|
||||
@@ -153,6 +155,7 @@ public final class BlockHighlightRenderHandler {
|
||||
double renderPosY = Minecraft.getInstance().getRenderManager().renderPosY;
|
||||
double renderPosZ = Minecraft.getInstance().getRenderManager().renderPosZ;
|
||||
|
||||
GlStateManager.disableCull();
|
||||
GlStateManager.pushMatrix();
|
||||
double x = center.getX() + 0.5;
|
||||
double y = center.getY();
|
||||
@@ -197,6 +200,7 @@ public final class BlockHighlightRenderHandler {
|
||||
tessellator.draw();
|
||||
GlStateManager.color4f(1, 1, 1, 1);
|
||||
GlStateManager.popMatrix();
|
||||
GlStateManager.enableCull();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user