mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Change item model alpha tests to match values used for rendering (#4490)
This commit is contained in:
1 parent
d060747fad
commit
4b3799f460
2 files changed
+2
-3
No files matched your search
@@ -142,7 +142,7 @@ public final class ItemLayerModel implements IModel
|
||||
for(int u = 0; u < uMax; u++)
|
||||
{
|
||||
int alpha = getAlpha(pixels, uMax, vMax, u, v);
|
||||
boolean t = alpha == 0;
|
||||
boolean t = alpha / 255f <= 0.1f;
|
||||
|
||||
if (!t && alpha < 255)
|
||||
{
|
||||
|
||||
@@ -206,10 +206,9 @@ public final class ItemTextureQuadConverter
|
||||
return quads;
|
||||
}
|
||||
|
||||
// true if alpha != 0
|
||||
private static boolean isVisible(int color)
|
||||
{
|
||||
return (color >> 24 & 255) > 0;
|
||||
return (color >> 24 & 255) / 255f > 0.1f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user