From 2e6269b1a67c1d74b9eddc60fa331457787cd8d2 Mon Sep 17 00:00:00 2001 From: IMS212 Date: Thu, 23 Jan 2025 10:07:09 -0800 Subject: [PATCH] don't draw to shadow --- .../java/net/irisshaders/iris/mixin/MixinShaderInstance.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/net/irisshaders/iris/mixin/MixinShaderInstance.java b/common/src/main/java/net/irisshaders/iris/mixin/MixinShaderInstance.java index fee1473df..c2755055a 100644 --- a/common/src/main/java/net/irisshaders/iris/mixin/MixinShaderInstance.java +++ b/common/src/main/java/net/irisshaders/iris/mixin/MixinShaderInstance.java @@ -87,6 +87,8 @@ public abstract class MixinShaderInstance implements ShaderInstanceInterface { public boolean iris$shouldSkipThis() { if (Iris.getIrisConfig().shouldAllowUnknownShaders()) { + if (ShadowRenderer.ACTIVE) return true; + if (!shouldOverrideShaders()) return false; if (shouldSkip == NONE) return false; @@ -158,7 +160,7 @@ private void onTail(CallbackInfo ci) { if (pipeline instanceof IrisRenderingPipeline) { if (ShadowRenderer.ACTIVE) { - ((IrisRenderingPipeline) pipeline).bindDefaultShadow(); + // ((IrisRenderingPipeline) pipeline).bindDefaultShadow(); don't rn } else { ((IrisRenderingPipeline) pipeline).bindDefault(); }