diff --git a/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderKey.java b/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderKey.java index 06390f5420..5c480c6ec8 100644 --- a/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderKey.java +++ b/common/src/main/java/net/irisshaders/iris/pipeline/programs/ShaderKey.java @@ -2,6 +2,7 @@ import com.mojang.blaze3d.vertex.DefaultVertexFormat; import com.mojang.blaze3d.vertex.VertexFormat; +import it.unimi.dsi.fastutil.objects.ObjectArraySet; import net.irisshaders.iris.gl.blending.AlphaTest; import net.irisshaders.iris.gl.blending.AlphaTests; import net.irisshaders.iris.gl.state.FogMode; @@ -9,6 +10,7 @@ import net.irisshaders.iris.vertices.IrisVertexFormats; import java.util.Locale; +import java.util.Set; public enum ShaderKey { // if you auto-format this and destroy all the manual indentation, I'll steal your kneecaps @@ -126,7 +128,13 @@ public String getName() { } public boolean isShadow() { - return this.getProgram() == ProgramId.Shadow || this.getProgram() == ProgramId.ShadowCutout || this.getProgram() == ProgramId.ShadowWater || this.getProgram() == ProgramId.ShadowSolid || this.getProgram() == ProgramId.ShadowEntities || this.getProgram() == ProgramId.ShadowBlock; + return this.getProgram() == ProgramId.Shadow + || this.getProgram() == ProgramId.ShadowCutout + || this.getProgram() == ProgramId.ShadowWater + || this.getProgram() == ProgramId.ShadowSolid + || this.getProgram() == ProgramId.ShadowEntities + || this.getProgram() == ProgramId.ShadowLightning + || this.getProgram() == ProgramId.ShadowBlock; } public boolean hasDiffuseLighting() {