protected void createRenderChunks(IRenderChunkFactory renderChunkFactory)
{
int i = this.countChunksX * this.countChunksY * this.countChunksZ;
this.renderChunks = new RenderChunk[i];
int j = 0;
for (int k = 0; k < this.countChunksX; ++k)
{
for (int l = 0; l < this.countChunksY; ++l)
{
for (int i1 = 0; i1 < this.countChunksZ; ++i1)
{
int j1 = (i1 * this.countChunksY + l) * this.countChunksX + k;
this.renderChunks[j1] = renderChunkFactory.create(this.world, this.renderGlobal, j++);
this.renderChunks[j1].setPosition(k * 16, l * 16, i1 * 16);
}
}
}
}
ViewFrustum.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录