use of codechicken.lib.vec.uv.UVTransformationList in project GregTech by GregTechCE.
the class Textures method renderFace.
@SideOnly(Side.CLIENT)
public static void renderFace(CCRenderState renderState, Matrix4 translation, IVertexOperation[] ops, EnumFacing face, Cuboid6 bounds, TextureAtlasSprite sprite) {
BlockFace blockFace = blockFaces.get();
blockFace.loadCuboidFace(bounds, face.getIndex());
UVTransformationList uvList = new UVTransformationList(new IconTransformation(sprite));
if (face.getIndex() == 0) {
uvList.prepend(new UVMirror(0, 0, bounds.min.z, bounds.max.z));
}
renderState.setPipeline(blockFace, 0, blockFace.verts.length, ArrayUtils.addAll(ops, new TransformationList(translation), uvList));
renderState.render();
}
Aggregations