public static void drawBoundingBox(EntityLivingBase entity, AxisAlignedBB aabb) {
if (aabb == null) {
return;
}
GL11.glEnable(GL11.GL_BLEND);
OpenGlHelper.glBlendFunc(770, 771, 1, 0);
GL11.glColor4f(0.0F, 0.0F, 0.0F, 0.4F);
GL11.glLineWidth(2.0F);
GL11.glDisable(GL11.GL_TEXTURE_2D);
GL11.glDepthMask(false);
float f1 = 0.002F;
double d0 = entity.lastTickPosX + (entity.posX - entity.lastTickPosX);
double d1 = entity.lastTickPosY + (entity.posY - entity.lastTickPosY);
double d2 = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ);
RenderGlobal.drawOutlinedBoundingBox(aabb.expand((double) f1, (double) f1, (double) f1).getOffsetBoundingBox(-d0, -d1, -d2), -1);
GL11.glDepthMask(true);
GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glDisable(GL11.GL_BLEND);
}
RenderHelper.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:RoboticMinions
作者:
评论列表
文章目录