Skip to content

Commit

Permalink
Fix lightning shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Nov 8, 2024
1 parent 9e87a8e commit 220a694
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

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;
import net.irisshaders.iris.shaderpack.loading.ProgramId;
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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 220a694

Please sign in to comment.