removed texture bleeding fixes

This commit is contained in:
LAX1DUDE 2022-07-17 20:18:19 -07:00
parent 743a970595
commit 2f3c225e79
2 changed files with 6 additions and 6 deletions

View file

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

View file

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