mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 11:29:23 +01:00
parent
6cdf74cd88
commit
e1ec9e4afb
2 changed files with 6 additions and 3 deletions
|
@ -39,10 +39,15 @@ public class RenderLaserRelay extends TileEntitySpecialRenderer{
|
|||
BlockPos second = pair.getPositions()[1];
|
||||
float[] color = relay.type == LaserType.ITEM ? COLOR_ITEM : (relay.type == LaserType.FLUID ? COLOR_FLUIDS : COLOR);
|
||||
|
||||
AssetUtil.renderLaser(first.getX()+0.5, first.getY()+0.5, first.getZ()+0.5, second.getX()+0.5, second.getY()+0.5, second.getZ()+0.5, 120, 0.5F, 0.05, color);
|
||||
AssetUtil.renderLaser(first.getX()+0.5, first.getY()+0.5, first.getZ()+0.5, second.getX()+0.5, second.getY()+0.5, second.getZ()+0.5, 120, 0.35F, 0.05, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isGlobalRenderer(TileEntity tile){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -233,7 +233,6 @@ public final class AssetUtil{
|
|||
GlStateManager.disableLighting();
|
||||
GlStateManager.enableBlend();
|
||||
GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
|
||||
GlStateManager.depthMask(false);
|
||||
GlStateManager.translate(firstX-TileEntityRendererDispatcher.staticPlayerX, firstY-TileEntityRendererDispatcher.staticPlayerY, firstZ-TileEntityRendererDispatcher.staticPlayerZ);
|
||||
GlStateManager.rotate((float)(180*yaw/Math.PI), 0, 1, 0);
|
||||
GlStateManager.rotate((float)(180*pitch/Math.PI), 0, 0, 1);
|
||||
|
@ -313,7 +312,6 @@ public final class AssetUtil{
|
|||
|
||||
GlStateManager.disableBlend();
|
||||
GlStateManager.enableLighting();
|
||||
GlStateManager.depthMask(true);
|
||||
GlStateManager.popMatrix();
|
||||
|
||||
GlStateManager.enableFog();
|
||||
|
|
Loading…
Reference in a new issue