update for CCC/L 1.2.0

This commit is contained in:
bombcar authored and Martin Robertz committed 2024-01-11 22:22:29 +01:00
1 parent 66fb9ddbb3
commit 15a0f7f6c6
4 files changed
+15 -16

No files matched your search

@@ -8,16 +8,19 @@ public class FullBrightLighting implements CCRenderState.IVertexOperation {
public int id;
public boolean load() {
if (!CCRenderState.computeLighting) {
final CCRenderState state = CCRenderState.instance();
if (!state.computeLighting) {
return false;
}
CCRenderState.pipeline.addDependency(CCRenderState.colourAttrib);
CCRenderState.pipeline.addDependency(CCRenderState.lightCoordAttrib);
state.pipeline.addDependency(CCRenderState.colourAttrib);
state.pipeline.addDependency(CCRenderState.lightCoordAttrib);
return true;
}
public void operate() {
CCRenderState.setBrightness(FULL_BRIGHT_BLOCK_BRIGHTNESS);
CCRenderState.instance()
.setBrightness(FULL_BRIGHT_BLOCK_BRIGHTNESS);
}
public int operationID() {
@@ -18,7 +18,7 @@ public class FullBrightMicroMaterial extends BlockMicroMaterial {
@SideOnly(Side.CLIENT)
public void renderMicroFace(final Vector3 pos, final int pass, final Cuboid6 bounds) {
CCRenderState.pipeline.builder()
CCRenderState.instance().pipeline.builder()
.add((CCRenderState.IVertexOperation) pos.translation())
.add((CCRenderState.IVertexOperation) this.icont())
.add((CCRenderState.IVertexOperation) ColourMultiplier.instance(FULL_BRIGHT_COLOR_MULTIPLIER))