private void renderConveyorWorld(IBlockAccess world, int x, int y, int z, Block block) {
Tessellator tessellator = Tessellator.instance;
int color = block.colorMultiplier(world, x, y, z);
float red = (color >> 16 & 255) / 255.0F;
float green = (color >> 8 & 255) / 255.0F;
float blue = (color & 255) / 255.0F;
if (EntityRenderer.anaglyphEnable) {
float anaglyphRed = (red * 30.0F + green * 59.0F + blue * 11.0F) / 100.0F;
float anaglyphGreen = (red * 30.0F + green * 70.0F) / 100.0F;
float anaglyphBlue = (red * 30.0F + blue * 70.0F) / 100.0F;
red = anaglyphRed;
green = anaglyphGreen;
blue = anaglyphBlue;
}
calculateVerts(world, x, y, z);
tessellator.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
tessellator.setColorOpaque_F(red, green, blue);
draw(tessellator, block.getIcon(world, x, y, z, 0));
}
ConveyorRenderer.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:PixelUtilities
作者:
评论列表
文章目录