mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 06:24:24 +00:00
Techne Rendering
* Fixes problem with texture sizes (Forge bug) * Implements a framework that allows easy rendering of only parts of models. * Changes telepad to use that.
This commit is contained in:
1 parent
9f9d0cce3f
commit
832d3bd4f6
8 files changed
+144
-57
No files matched your search
@@ -9,6 +9,7 @@ import com.google.common.collect.ObjectArrays;
|
||||
|
||||
import crazypants.render.CustomCubeRenderer;
|
||||
import crazypants.render.TechneModelRenderer;
|
||||
import crazypants.render.TechneUtil;
|
||||
import crazypants.render.VertexRotationFacing;
|
||||
import crazypants.render.VertexTransform;
|
||||
import crazypants.render.VertexTransformComposite;
|
||||
@@ -22,6 +23,10 @@ public class TechneMachineRenderer<T extends AbstractMachineEntity> extends Tech
|
||||
super(modelPath, block.getRenderType(), new VertexTransformComposite(new VertexRotationFacing(ForgeDirection.NORTH)));
|
||||
}
|
||||
|
||||
public TechneMachineRenderer(int renderId, String modelPath) {
|
||||
super(TechneUtil.getModel(modelPath), renderId, new VertexTransformComposite(new VertexRotationFacing(ForgeDirection.NORTH)));
|
||||
}
|
||||
|
||||
public TechneMachineRenderer<T> addTransform(VertexTransform vt) {
|
||||
this.vt = new VertexTransformComposite(ObjectArrays.concat(vt, ((VertexTransformComposite) this.vt).xforms));
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user