diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-10-18 00:45:58 -0400 |
---|---|---|
committer | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-10-18 00:45:58 -0400 |
commit | 132c33af264df143bc3e02087c76be20d94aebf5 (patch) | |
tree | 0b18633cf2a1ec7bfbea046632bcc65accc00b20 /src/main/java/de/hysky/skyblocker/utils | |
parent | 38f3ec2348c0d02d3b2ef682bfbb62aa0a327cec (diff) | |
download | Skyblocker-132c33af264df143bc3e02087c76be20d94aebf5.tar.gz Skyblocker-132c33af264df143bc3e02087c76be20d94aebf5.tar.bz2 Skyblocker-132c33af264df143bc3e02087c76be20d94aebf5.zip |
Secret Waypoint Rendering Customization
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/utils')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java b/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java index 4630149c..5ab698a7 100644 --- a/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java +++ b/src/main/java/de/hysky/skyblocker/utils/render/RenderHelper.java @@ -78,7 +78,7 @@ public class RenderHelper { * Renders the outline of a box with the specified color components and line width. * This does not use renderer since renderer draws outline using debug lines with a fixed width. */ - public static void renderOutline(WorldRenderContext context, Box box, float[] colorComponents, float lineWidth) { + public static void renderOutline(WorldRenderContext context, Box box, float[] colorComponents, float lineWidth, boolean throughWalls) { if (FrustumUtils.isVisible(box)) { MatrixStack matrices = context.matrixStack(); Vec3d camera = context.camera().getPos(); @@ -90,6 +90,7 @@ public class RenderHelper { RenderSystem.lineWidth(lineWidth); RenderSystem.disableCull(); RenderSystem.enableDepthTest(); + RenderSystem.depthFunc(throughWalls ? GL11.GL_ALWAYS : GL11.GL_LEQUAL); matrices.push(); matrices.translate(-camera.getX(), -camera.getY(), -camera.getZ()); @@ -102,6 +103,7 @@ public class RenderHelper { RenderSystem.lineWidth(1f); RenderSystem.enableCull(); RenderSystem.disableDepthTest(); + RenderSystem.depthFunc(GL11.GL_LEQUAL); } } |