From 2f3c225e79c6820cb106c8a8be71ffaef15f1b0f Mon Sep 17 00:00:00 2001 From: LAX1DUDE Date: Sun, 17 Jul 2022 20:18:19 -0700 Subject: [PATCH] removed texture bleeding fixes --- .../java/net/lax1dude/eaglercraft/TextureTerrainMap.java | 8 ++++---- src/main/java/net/minecraft/src/TexturedQuad.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/lax1dude/eaglercraft/TextureTerrainMap.java b/src/main/java/net/lax1dude/eaglercraft/TextureTerrainMap.java index bb386db..cf402b0 100644 --- a/src/main/java/net/lax1dude/eaglercraft/TextureTerrainMap.java +++ b/src/main/java/net/lax1dude/eaglercraft/TextureTerrainMap.java @@ -68,10 +68,10 @@ public class TextureTerrainMap implements IconRegister { this.maxV = (float)(originY + tw) / (float)map.height; this.originX_center = originX + 16; this.originY_center = originY + 16; - this.minU_center = (float)(originX_center + 0.1f) / (float)map.width; - this.minV_center = (float)(originY_center + 0.1f) / (float)map.height; - this.maxU_center = (float)(originX_center + 16 - 0.1f) / (float)map.width; - this.maxV_center = (float)(originY_center + 16 - 0.1f) / (float)map.height; + this.minU_center = (float)(originX_center + 0.025f) / (float)map.width; + this.minV_center = (float)(originY_center + 0.025f) / (float)map.height; + this.maxU_center = (float)(originX_center + 16 - 0.025f) / (float)map.width; + this.maxV_center = (float)(originY_center + 16 - 0.025f) / (float)map.height; } @Override diff --git a/src/main/java/net/minecraft/src/TexturedQuad.java b/src/main/java/net/minecraft/src/TexturedQuad.java index 16856b0..78399c1 100644 --- a/src/main/java/net/minecraft/src/TexturedQuad.java +++ b/src/main/java/net/minecraft/src/TexturedQuad.java @@ -16,8 +16,8 @@ public class TexturedQuad { public TexturedQuad(PositionTextureVertex[] par1ArrayOfPositionTextureVertex, Vec3 normal, int par2, int par3, int par4, int par5, float par6, float par7) { this(par1ArrayOfPositionTextureVertex); - float var8 = 0.2F / par6; - float var9 = 0.2F / par7; + float var8 = 0.025F / par6; + float var9 = 0.025F / par7; par1ArrayOfPositionTextureVertex[0] = par1ArrayOfPositionTextureVertex[0].setTexturePosition((float) par4 / par6 - var8, (float) par3 / par7 + var9); par1ArrayOfPositionTextureVertex[1] = par1ArrayOfPositionTextureVertex[1].setTexturePosition((float) par2 / par6 + var8, (float) par3 / par7 + var9); par1ArrayOfPositionTextureVertex[2] = par1ArrayOfPositionTextureVertex[2].setTexturePosition((float) par2 / par6 + var8, (float) par5 / par7 - var9);