/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityMagmaCube entitylivingbaseIn, float partialTickTime)
{
int i = entitylivingbaseIn.getSlimeSize();
float f = (entitylivingbaseIn.prevSquishFactor + (entitylivingbaseIn.squishFactor - entitylivingbaseIn.prevSquishFactor) * partialTickTime) / ((float)i * 0.5F + 1.0F);
float f1 = 1.0F / (f + 1.0F);
float f2 = (float)i;
GlStateManager.scale(f1 * f2, 1.0F / f1 * f2, f1 * f2);
}
RenderMagmaCube.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:BaseClient
作者:
评论列表
文章目录