diff options
author | makamys <makamys@outlook.com> | 2021-06-19 23:59:56 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-06-20 00:00:13 +0200 |
commit | 255bdd5dbfb2bed25a8b08df013d49524d564162 (patch) | |
tree | 52977bb43168cd598448eeaad3881dd3c39ea49e /src/main/java/makamys/lodmod | |
parent | d64ee82b4dc59c21cbe86e364fd51785f38ec8ba (diff) | |
download | Neodymium-255bdd5dbfb2bed25a8b08df013d49524d564162.tar.gz Neodymium-255bdd5dbfb2bed25a8b08df013d49524d564162.tar.bz2 Neodymium-255bdd5dbfb2bed25a8b08df013d49524d564162.zip |
Fix fogStart and fogEnd config options doing nothing
Diffstat (limited to 'src/main/java/makamys/lodmod')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index 2f958d0..e3cb045 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -216,8 +216,8 @@ public class LODRenderer { public void afterSetupFog(int mode, float alpha, float farPlaneDistance) { EntityLivingBase entity = Minecraft.getMinecraft().renderViewEntity; if(LODMod.fogEventWasPosted && !Minecraft.getMinecraft().theWorld.provider.doesXZShowFog((int)entity.posX, (int)entity.posZ)) { - GL11.glFogf(GL11.GL_FOG_START, mode < 0 ? 0 : farPlaneDistance * 0.2f); - GL11.glFogf(GL11.GL_FOG_END, mode < 0 ? farPlaneDistance/4 : farPlaneDistance * 0.8f); + GL11.glFogf(GL11.GL_FOG_START, mode < 0 ? 0 : farPlaneDistance * (float)LODMod.fogStart); + GL11.glFogf(GL11.GL_FOG_END, mode < 0 ? farPlaneDistance/4 : farPlaneDistance * (float)LODMod.fogEnd); } } |