mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fixed UV contraction for the texture in the top-left corner of the texture map (0, 0), see sp614x/optifine#1024 (#4703)
This commit is contained in:
1 parent
3b580f643e
commit
c12df92170
1 file changed
+2
-2
@@ -180,8 +180,8 @@ public class UnpackedBakedQuad extends BakedQuad
|
||||
}
|
||||
if(contractUVs)
|
||||
{
|
||||
float tX = texture.getOriginX() / texture.getMinU();
|
||||
float tY = texture.getOriginY() / texture.getMinV();
|
||||
float tX = texture.getIconWidth() / (texture.getMaxU() - texture.getMinU());
|
||||
float tY = texture.getIconHeight() / (texture.getMaxV() - texture.getMinV());
|
||||
float tS = tX > tY ? tX : tY;
|
||||
float ep = 1f / (tS * 0x100);
|
||||
int uve = 0;
|
||||
|
||||
Reference in new issue
Block a user