本文整理汇总了Java中codechicken.lib.render.CCRenderState.setColour方法的典型用法代码示例。如果您正苦于以下问题:Java CCRenderState.setColour方法的具体用法?Java CCRenderState.setColour怎么用?Java CCRenderState.setColour使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.lib.render.CCRenderState
的用法示例。
在下文中一共展示了CCRenderState.setColour方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: operate
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
public void operate() {
LC lc = CCRenderState.lc;
float[] a = ao(lc.side);
float f = (a[0] * lc.fa + a[1] * lc.fb + a[2] * lc.fc + a[3] * lc.fd);
int[] b = brightness(lc.side);
CCRenderState.setColour(ColourRGBA.multiplyC(CCRenderState.colour, f));
CCRenderState.setBrightness((int) (b[0] * lc.fa + b[1] * lc.fb + b[2] * lc.fc + b[3] * lc.fd) & 0xFF00FF);
}
示例2: operate
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
public void operate()
{
LC lc = CCRenderState.lc;
float[] a = ao(lc.side);
float f = (a[0] * lc.fa + a[1] * lc.fb + a[2] * lc.fc + a[3] * lc.fd);
int[] b = brightness(lc.side);
CCRenderState.setColour(ColourRGBA.multiplyC(CCRenderState.colour, f));
CCRenderState.setBrightness((int) (b[0] * lc.fa + b[1] * lc.fb + b[2] * lc.fc + b[3] * lc.fd) & 0xFF00FF);
}
示例3: renderStatic
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void renderStatic(Vector3 pos, LazyLightMatrix olm, int pass) {
if (pass == 0)
{
CCRenderState.setBrightness(world(), x(), y(), z());
ExtensorRender.render(this, pos);
CCRenderState.setColour(-1);
}
}
示例4: operate
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
public void operate() {
CCRenderState.setColour(ColourRGBA.multiply(CCRenderState.colour, colours[CCRenderState.side]));
}
示例5: operate
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
public void operate() {
CCRenderState.setColour(apply(CCRenderState.colour, CCRenderState.normal));
}
示例6: operate
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
public void operate()
{
CCRenderState.setColour(ColourRGBA.multiply(CCRenderState.colour, colours[CCRenderState.side]));
}
示例7: operate
import codechicken.lib.render.CCRenderState; //导入方法依赖的package包/类
@Override
public void operate()
{
CCRenderState.setColour(apply(CCRenderState.colour, CCRenderState.normal));
}