void EntityFootStepFX::renderParticle(Tessellator tessellator, float f, float f1, float f2, float f3, float f4, float f5) { float f6 = ((float)field_27018_a + f) / (float)field_27020_o; f6 *= f6; float f7 = 2.0F - f6 * 2.0F; if(f7 > 1.0F) { f7 = 1.0F; } f7 *= 0.2; GL11.glDisable(2896 /*GL_LIGHTING*/); float f8 = 0.125; float f9 = (float)(posX - interpPosX); float f10 = (float)(posY - interpPosY); float f11 = (float)(posZ - interpPosZ); float f12 = worldObj.getLightBrightness(MathHelper.floor_double(posX), MathHelper.floor_double(posY), MathHelper.floor_double(posZ)); field_27019_p.bindTexture(field_27019_p.getTexture("/misc/footprint.png")); GL11.glEnable(3042 /*GL_BLEND*/); GL11.glBlendFunc(770, 771); tessellator.startDrawingQuads(); tessellator.setColorRGBA_F(f12, f12, f12, f7); tessellator.addVertexWithUV(f9 - f8, f10, f11 + f8, 0.0D, 1.0D); tessellator.addVertexWithUV(f9 + f8, f10, f11 + f8, 1.0D, 1.0D); tessellator.addVertexWithUV(f9 + f8, f10, f11 - f8, 1.0D, 0.0D); tessellator.addVertexWithUV(f9 - f8, f10, f11 - f8, 0.0D, 0.0D); tessellator.draw(); GL11.glDisable(3042 /*GL_BLEND*/); GL11.glEnable(2896 /*GL_LIGHTING*/); }