Skip to content

Commit 07c0b46

Browse files
author
IMS212
committed
Ignore 1.18.2 fog fix when rendering sky since Sodium handles this better, fixes some issues with end sky
1 parent 3866437 commit 07c0b46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/net/coderbot/iris/mixin/MixinLevelRenderer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.spongepowered.asm.mixin.injection.At;
3636
import org.spongepowered.asm.mixin.injection.Inject;
3737
import org.spongepowered.asm.mixin.injection.ModifyArg;
38+
import org.spongepowered.asm.mixin.injection.ModifyVariable;
3839
import org.spongepowered.asm.mixin.injection.Redirect;
3940
import org.spongepowered.asm.mixin.injection.Slice;
4041
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@@ -98,6 +99,11 @@ public class MixinLevelRenderer {
9899
pipeline.renderShadows((LevelRendererAccessor) this, camera);
99100
}
100101

102+
@ModifyVariable(method = "renderSky", at = @At(value = "HEAD"), index = 5, argsOnly = true)
103+
private boolean iris$alwaysRenderSky(boolean value) {
104+
return false;
105+
}
106+
101107
@Inject(method = "renderLevel", at = @At(value = "INVOKE", target = RENDER_SKY))
102108
private void iris$beginSky(PoseStack poseStack, float tickDelta, long limitTime, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightTexture lightTexture, Matrix4f projection, CallbackInfo callback) {
103109
// Use CUSTOM_SKY until levelFogColor is called as a heuristic to catch FabricSkyboxes.

0 commit comments

Comments
 (0)