From d402ba61cc425c25dcfe70c7c58d929218f258a9 Mon Sep 17 00:00:00 2001 From: Howard Stark Date: Thu, 8 Aug 2019 09:36:55 -1000 Subject: [PATCH] Disable lighting on path render --- src/main/java/baritone/utils/PathRenderer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/baritone/utils/PathRenderer.java b/src/main/java/baritone/utils/PathRenderer.java index b0924cc1..b0157247 100644 --- a/src/main/java/baritone/utils/PathRenderer.java +++ b/src/main/java/baritone/utils/PathRenderer.java @@ -122,6 +122,7 @@ public final class PathRenderer implements Helper { public static void drawPath(IPath path, int startIndex, Entity player, float partialTicks, Color color, boolean fadeOut, int fadeStart0, int fadeEnd0) { GlStateManager.enableBlend(); + GlStateManager.disableLighting(); GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO); GlStateManager.color(color.getColorComponents(null)[0], color.getColorComponents(null)[1], color.getColorComponents(null)[2], 0.4F); GlStateManager.glLineWidth(Baritone.settings().pathRenderLineWidthPixels.value); @@ -176,6 +177,7 @@ public final class PathRenderer implements Helper { //GlStateManager.color(0.0f, 0.0f, 0.0f, 0.4f); GlStateManager.depthMask(true); GlStateManager.enableTexture2D(); + GlStateManager.enableLighting(); GlStateManager.disableBlend(); }