Skip to content

Commit

Permalink
Fixed hand depth with overlay enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
r8420 committed Jan 12, 2022
1 parent 76f2639 commit f99eac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,8 @@ else if (mode == 2)
renderCross(matrixstack, entry.getKey(), ar, ag, ab);
}
tess.end();
RenderSystem.enableTexture();
RenderSystem.disableCull();
RenderSystem.depthMask(true);
}
}

0 comments on commit f99eac0

Please sign in to comment.