made the projectile generator not z-fight

This commit is contained in:
Ellpeck 2020-01-31 13:42:21 +01:00
parent 40757e258a
commit 74b068de2a

View file

@ -30,15 +30,15 @@ public class RenderProjectileGenerator extends TileEntityRenderer<TileEntityProj
stack.push(); stack.push();
if (te.nextSide == Direction.NORTH) { if (te.nextSide == Direction.NORTH) {
stack.rotate(Vector3f.YP.rotationDegrees(270)); stack.rotate(Vector3f.YP.rotationDegrees(270));
stack.translate(-0.001F, 0, -1); stack.translate(-0.002F, 0, -1);
} else if (te.nextSide == Direction.EAST) { } else if (te.nextSide == Direction.EAST) {
stack.rotate(Vector3f.YP.rotationDegrees(180)); stack.rotate(Vector3f.YP.rotationDegrees(180));
stack.translate(-1.001F, 0, -1); stack.translate(-1.002F, 0, -1);
} else if (te.nextSide == Direction.SOUTH) { } else if (te.nextSide == Direction.SOUTH) {
stack.rotate(Vector3f.YP.rotationDegrees(90)); stack.rotate(Vector3f.YP.rotationDegrees(90));
stack.translate(-1.001F, 0, 0); stack.translate(-1.002F, 0, 0);
} else { } else {
stack.translate(-0.001F, 0, 0); stack.translate(-0.002F, 0, 0);
} }
int brightness = 15 << 20 | 15 << 4; int brightness = 15 << 20 | 15 << 4;
this.model.render(stack, buffer.getBuffer(this.model.getRenderType(RES)), brightness, combinedOverlayIn, 1, 1, 1, 1); this.model.render(stack, buffer.getBuffer(this.model.getRenderType(RES)), brightness, combinedOverlayIn, 1, 1, 1, 1);