public int getBrightness(IBlockAccess blockAccess, int x, int y, int z, Block block)
{
int mb = block.getMixedBrightnessForBlock(blockAccess, x, y, z);
tessellator.setBrightness(mb);
float f = 1.0F;
int l = block.colorMultiplier(blockAccess, x, y, z);
float f1 = (float) (l >> 16 & 255) / 255.0F;
float f2 = (float) (l >> 8 & 255) / 255.0F;
float f3 = (float) (l & 255) / 255.0F;
if (EntityRenderer.anaglyphEnable)
{
float f6 = (f1 * 30.0F + f2 * 59.0F + f3 * 11.0F) / 100.0F;
float f4 = (f1 * 30.0F + f2 * 70.0F) / 100.0F;
float f7 = (f1 * 30.0F + f3 * 70.0F) / 100.0F;
f1 = f6;
f2 = f4;
f3 = f7;
}
tessellator.setColorOpaque_F(f * f1, f * f2, f * f3);
return mb;
}
BlockRenderingHandler.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:ThaumicThings
作者:
评论列表
文章目录