Skip to content

Commit b222b25

Browse files
committed
refactor(planets): don't render Earth & Sun on Venus
1 parent 0f2c621 commit b222b25

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

src/main/java/micdoodle8/mods/galacticraft/planets/venus/client/SkyProviderVenus.java

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ public void render(float partialTicks, WorldClient world, Minecraft mc)
181181
float b = f8 * f18;
182182
float a = afloat[3] * 2 / f18;
183183
worldRenderer1.pos(0.0D, 100.0D, 0.0D).color(r, g, b, a).endVertex();
184-
byte b0 = 16;
185184
r = afloat[0] * f18;
186185
g = afloat[1] * f18;
187186
b = afloat[2] * f18 / 20.0F;
@@ -212,7 +211,7 @@ public void render(float partialTicks, WorldClient world, Minecraft mc)
212211
a = 0.0F;
213212

214213
// Render larger sun aura
215-
f10 = 40.0F;
214+
f10 = 20.0F;
216215
worldRenderer1.pos(-f10, 100.0D, -f10).color(r, g, b, a).endVertex();
217216
worldRenderer1.pos(0, 100.0D, (double) -f10 * 1.5F).color(r, g, b, a).endVertex();
218217
worldRenderer1.pos(f10, 100.0D, -f10).color(r, g, b, a).endVertex();
@@ -249,30 +248,6 @@ public void render(float partialTicks, WorldClient world, Minecraft mc)
249248
tessellator1.draw();
250249
GL11.glEnable(GL11.GL_TEXTURE_2D);
251250
GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.1F);
252-
f10 = this.sunSize;
253-
mc.renderEngine.bindTexture(SkyProviderVenus.sunTexture);
254-
worldRenderer1.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
255-
worldRenderer1.pos(-f10, 100.0D, -f10).tex(0.0D, 0.0D).endVertex();
256-
worldRenderer1.pos(f10, 100.0D, -f10).tex(1.0D, 0.0D).endVertex();
257-
worldRenderer1.pos(f10, 100.0D, f10).tex(1.0D, 1.0D).endVertex();
258-
worldRenderer1.pos(-f10, 100.0D, f10).tex(0.0D, 1.0D).endVertex();
259-
tessellator1.draw();
260-
261-
// Render earth
262-
f10 = 0.5F;
263-
GL11.glScalef(0.6F, 0.6F, 0.6F);
264-
GL11.glRotatef(40.0F, 0.0F, 0.0F, 1.0F);
265-
GL11.glRotatef(200F, 1.0F, 0.0F, 0.0F);
266-
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1F);
267-
FMLClientHandler.instance().getClient().renderEngine.bindTexture(SkyProviderVenus.overworldTexture);
268-
worldRenderer1.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
269-
worldRenderer1.pos(-f10, -100.0D, f10).tex(0, 1.0).endVertex();
270-
worldRenderer1.pos(f10, -100.0D, f10).tex(1.0, 1.0).endVertex();
271-
worldRenderer1.pos(f10, -100.0D, -f10).tex(1.0, 0).endVertex();
272-
worldRenderer1.pos(-f10, -100.0D, -f10).tex(0, 0).endVertex();
273-
tessellator1.draw();
274-
275-
GL11.glDisable(GL11.GL_TEXTURE_2D);
276251

277252
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
278253
GL11.glDisable(GL11.GL_BLEND);
@@ -390,11 +365,6 @@ private void renderStars()
390365
var2.draw();
391366
}
392367

393-
private Vec3d getCustomSkyColor()
394-
{
395-
return new Vec3d(0.26796875D, 0.1796875D, 0.0D);
396-
}
397-
398368
public float getSkyBrightness(float par1)
399369
{
400370
final float var2 = FMLClientHandler.instance().getClient().world.getCelestialAngle(par1);

0 commit comments

Comments
 (0)