From f99eac0c8f7ebe753345f909ca7811d5993b6d24 Mon Sep 17 00:00:00 2001 From: Richard Gonlag Date: Thu, 13 Jan 2022 00:16:20 +0100 Subject: [PATCH] Fixed hand depth with overlay enabled --- .../ridgo8/moreoverlays/chunkbounds/ChunkBoundsRenderer.java | 3 +++ .../ridgo8/moreoverlays/lightoverlay/LightOverlayRenderer.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/at/ridgo8/moreoverlays/chunkbounds/ChunkBoundsRenderer.java b/src/main/java/at/ridgo8/moreoverlays/chunkbounds/ChunkBoundsRenderer.java index 7968ca1..9e1ee44 100644 --- a/src/main/java/at/ridgo8/moreoverlays/chunkbounds/ChunkBoundsRenderer.java +++ b/src/main/java/at/ridgo8/moreoverlays/chunkbounds/ChunkBoundsRenderer.java @@ -110,6 +110,9 @@ public static void renderOverlays(PoseStack matrixstack) { renderGrid(matrixstack, regionBorderX0 - 0.005f, regionBorderY0 - 0.005f, regionBorderZ0 - 0.005f, regionBorderX1 + 0.005f, regionBorderY1 + 0.005f, regionBorderZ1 + 0.005f, 16.0f, renderColorGrid); } + RenderSystem.enableTexture(); + RenderSystem.disableCull(); + RenderSystem.depthMask(true); } public static void renderEdge(PoseStack matrixstack, double x, double z, double h3, double h, int color) { diff --git a/src/main/java/at/ridgo8/moreoverlays/lightoverlay/LightOverlayRenderer.java b/src/main/java/at/ridgo8/moreoverlays/lightoverlay/LightOverlayRenderer.java index 6d76305..9f90295 100644 --- a/src/main/java/at/ridgo8/moreoverlays/lightoverlay/LightOverlayRenderer.java +++ b/src/main/java/at/ridgo8/moreoverlays/lightoverlay/LightOverlayRenderer.java @@ -116,5 +116,8 @@ else if (mode == 2) renderCross(matrixstack, entry.getKey(), ar, ag, ab); } tess.end(); + RenderSystem.enableTexture(); + RenderSystem.disableCull(); + RenderSystem.depthMask(true); } }