From cfcc5805e9fcd9e9e2ce12e2ace86c525d50c96a Mon Sep 17 00:00:00 2001 From: IMS212 Date: Fri, 18 Aug 2023 08:59:14 -0700 Subject: [PATCH] cloudHeight uniform --- .../net/coderbot/iris/uniforms/IrisExclusiveUniforms.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/net/coderbot/iris/uniforms/IrisExclusiveUniforms.java b/src/main/java/net/coderbot/iris/uniforms/IrisExclusiveUniforms.java index df8210b467..c115a547e0 100644 --- a/src/main/java/net/coderbot/iris/uniforms/IrisExclusiveUniforms.java +++ b/src/main/java/net/coderbot/iris/uniforms/IrisExclusiveUniforms.java @@ -125,6 +125,14 @@ public static void addWorldInfoUniforms(UniformHolder uniforms) { return 0; } }); + uniforms.uniform1f(UniformUpdateFrequency.PER_FRAME, "cloudHeight", () -> { + if (level != null) { + return level.effects().getCloudHeight(); + } else { + return 192.0; + } + }); + uniforms.uniform1i(UniformUpdateFrequency.PER_FRAME, "heightLimit", () -> { if (level != null) { return level.dimensionType().height();