Change item model alpha tests to match values used for rendering (#4490)

This commit is contained in:
Ben Staddon 2017-11-09 22:31:39 +00:00 committed by LexManos
parent d060747fad
commit 4b3799f460
2 changed files with 2 additions and 3 deletions

View File

@ -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)
{

View File

@ -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;
}
/**