aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-01-01 03:53:25 +0000
committerGTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>2023-01-01 03:53:25 +0000
commit9789044c0c07fc7ca516afd6e90b8ba19de834bd (patch)
tree3f11c7d1a9dcb51272a7e57cc2ca0ea0b52a55f8 /src/main/java
parent94740e4e5c14dac91e35e806bb5c4bde9c724f15 (diff)
downloadGT5-Unofficial-9789044c0c07fc7ca516afd6e90b8ba19de834bd.tar.gz
GT5-Unofficial-9789044c0c07fc7ca516afd6e90b8ba19de834bd.tar.bz2
GT5-Unofficial-9789044c0c07fc7ca516afd6e90b8ba19de834bd.zip
Translation of planets working correctly.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java35
1 files changed, 25 insertions, 10 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java
index e006a91c61..7257aa6ea9 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/RenderEyeOfHarmony.java
@@ -50,10 +50,26 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer {
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5);
- renderBlockInWorld(ModBlocks.blocks.get("DD"), 0, 3, 0, 0, 0.1f);
- renderBlockInWorld(ModBlocks.blocks.get("Ne"), 0, 6, 0, 0, 0.5f);
- renderBlockInWorld(ModBlocks.blocks.get("Mo"), 0, 8, 0, 15, 1.0f);
- renderBlockInWorld(ModBlocks.blocks.get("Ow"), 0, 10, 0, 15, 2.0f);
+ GL11.glPushMatrix();
+ GL11.glTranslated(0, 3, 0);
+ renderBlockInWorld(ModBlocks.blocks.get("DD"), 0, 0.1f);
+ GL11.glPopMatrix();
+
+ GL11.glPushMatrix();
+ GL11.glTranslated(3, 0, 0);
+ renderBlockInWorld(ModBlocks.blocks.get("Ne"), 0, 0.5f);
+ GL11.glPopMatrix();
+
+ GL11.glPushMatrix();
+ GL11.glTranslated(0, 0, 3);
+ renderBlockInWorld(ModBlocks.blocks.get("Mo"), 0, 1.0f);
+ GL11.glPopMatrix();
+
+ GL11.glPushMatrix();
+ GL11.glTranslated(0, 0, -3);
+ renderBlockInWorld(ModBlocks.blocks.get("Ow"), 0, 2.0f);
+ GL11.glPopMatrix();
+
if (EOHRenderTile.getTier() < 9) {
renderStarLayer(EOHRenderTile, 0, starLayer0, 1.0f);
@@ -174,7 +190,7 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer {
- public void renderBlockInWorld(Block block, double x, double y, double z, int meta, float blockSize) {
+ public void renderBlockInWorld(Block block, int meta, float blockSize) {
Tessellator tes = Tessellator.instance;
this.bindTexture(TextureMap.locationBlocksTexture);
@@ -184,18 +200,18 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer {
GL11.glEnable(GL11.GL_BLEND);
tes.setColorOpaque_F(1f, 1f, 1f);
- GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glDisable(GL11.GL_ALPHA_TEST);
GL11.glEnable(GL11.GL_BLEND);
tes.setColorOpaque_F(1f, 1f, 1f);
- double xOffset = 0;
- double zOffset = 0;
-
//Add the rendering calls here (Can and should use helper functions that do the vertex calls)
+ double x = 0;
+ double y = 0;
+ double z = 0;
+
double[] X = {x - 0.5 , x - 0.5 , x + 0.5 , x + 0.5 ,
x + 0.5 , x + 0.5 , x - 0.5 , x - 0.5 };
double[] Y = {y + 0.5 , y - 0.5 , y - 0.5 , y + 0.5 ,
@@ -305,7 +321,6 @@ public class RenderEyeOfHarmony extends TileEntitySpecialRenderer {
GL11.glDisable(GL11.GL_BLEND);
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glEnable(GL11.GL_CULL_FACE);
- GL11.glPopMatrix();
//spotless:on
}