Force enable fog if MC is rendering fog

Done to fix underwater/blindness rendering
This commit is contained in:
James Seibel
2026-02-14 08:24:44 -06:00
parent db378d64b0
commit d14349383b
4 changed files with 34 additions and 1 deletions
@@ -19,6 +19,7 @@
package com.seibel.distanthorizons.forge.mixins.client;
import com.seibel.distanthorizons.core.api.internal.ClientApi;
import com.seibel.distanthorizons.core.config.Config;
import com.seibel.distanthorizons.core.dependencyInjection.SingletonInjector;
import com.seibel.distanthorizons.core.wrapperInterfaces.minecraft.IMinecraftRenderWrapper;
@@ -78,6 +79,12 @@ public class MixinFogRenderer
RenderSystem.setShaderFogStart(A_REALLY_REALLY_BIG_VALUE);
RenderSystem.setShaderFogEnd(A_EVEN_LARGER_VALUE);
#endif
ClientApi.RENDER_STATE.vanillaFogEnabled = false;
}
else
{
ClientApi.RENDER_STATE.vanillaFogEnabled = true;
}
}