Skip to content

Commit

Permalink
Fix overwriting IrisShaders#2150
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Dec 9, 2023
1 parent fc5673a commit 9c3eaf6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ public void renderIris(@Nullable ClientLevel world, LocalPlayer player, PoseStac
return;
}

Vec3 color = world.getCloudColor(tickDelta);

float cloudHeight = world.effects().getCloudHeight();

// Vanilla uses NaN height as a way to disable cloud rendering
if (Float.isNaN(cloudHeight)) {
return;
}

Vec3 color = world.getCloudColor(tickDelta);

double cloudTime = (ticks + tickDelta) * 0.03F;
double cloudCenterX = (cameraX + cloudTime);
double cloudCenterZ = (cameraZ) + 0.33D;
Expand Down

0 comments on commit 9c3eaf6

Please sign in to comment.