More Rendering fixes

This commit is contained in:
Sebastian Hartte
2020-06-08 18:35:27 +02:00
parent 679ea1c332
commit b2afa0398c
44 changed files with 427 additions and 276 deletions
@@ -268,13 +268,12 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
}
matrixStack.push();
matrixStack.translate( 0.5, 0.5, 0.5 );
matrixStack.translate( 0.5, 0.5, 0.5 ); // Move into the center of the block
Direction facing = this.getSide().getFacing();
TesrRenderHelper.moveToFace( matrixStack, facing );
TesrRenderHelper.rotateToFace( matrixStack, facing, this.getSpin() );
TesrRenderHelper.renderItem2dWithAmount(matrixStack, buffers, ais, 0.8f, 0.17f );
TesrRenderHelper.renderItem2dWithAmount(matrixStack, buffers, ais, 0.8f, 0.17f, combinedLightIn, combinedOverlayIn );
matrixStack.pop();