/**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/
protected void preRenderCallback(EntityVillager entitylivingbaseIn, float partialTickTime)
{
float f = 0.9375F;
if (entitylivingbaseIn.getGrowingAge() < 0)
{
f = (float)((double)f * 0.5D);
this.shadowSize = 0.25F;
}
else
{
this.shadowSize = 0.5F;
}
GlStateManager.scale(f, f, f);
}
RenderVillager.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:BaseClient
作者:
评论列表
文章目录