Skip to content

Commit

Permalink
Fix lighting for some drawables (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Nov 22, 2023
1 parent 223f8d3 commit 9a67f7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void draw(float x0, float y0, float width, float height, float partialTic
GlStateManager.disableTexture2D();
GlStateManager.enableBlend();
GlStateManager.enableAlpha();
GlStateManager.disableLighting();
GlStateManager.tryBlendFuncSeparate(
GlStateManager.SourceFactor.SRC_ALPHA,
GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void draw(float x0, float y0, float width, float height, float partialTic
GlStateManager.disableTexture2D();
GlStateManager.enableBlend();
GlStateManager.enableAlpha();
GlStateManager.disableLighting();
GlStateManager.tryBlendFuncSeparate(
GlStateManager.SourceFactor.SRC_ALPHA,
GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA,
Expand Down

0 comments on commit 9a67f7d

Please sign in to comment.