@SideOnly(Side.CLIENT)
void visitChain(ICamera camera, float partial, ChainRender cr) {
// This is far from efficient as it ought to be.
// If the line is diagonal, then there will be huge amounts of
// space where the line is drawn even tho it is far off-screen.
if (start == null) return;
Vec3 s = getStart(partial);
Vec3 e = getEnd(partial);
// The lines are drawn fat, so make the box a bit fatter as well
final double d = 0.125;
AxisAlignedBB box = SpaceUtil.newBoxSort(s, e).expand(d, d, d);
if (camera.isBoundingBoxInFrustum(box)) {
cr.drawChain(s, e, partial);
}
}
ChainLink.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:Factorization
作者:
评论列表
文章目录