Skip to content

Commit

Permalink
Possible fix for certain materials breaking alpha in the gui
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed Sep 7, 2024
1 parent 4f694ae commit 9f588fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Plugins/CafeLibrary/Bfres/BfresMeshRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ private void DrawSubMesh(int displayLOD = 0)
GL.DepthFunc(DepthFunction.Lequal);
GL.DepthRange(0.0, 1.0);
GL.DepthMask(true);
GL.Disable(EnableCap.AlphaTest);
GL.AlphaFunc(AlphaFunction.Gequal, 0.5f);
}

int indexBuffer = -1;
Expand Down

0 comments on commit 9f588fa

Please sign in to comment.