-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Lordfirespeed/1.20-shader-refactor
1.20 Shader Refactor
- Loading branch information
Showing
19 changed files
with
271 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/com/buuz135/darkmodeeverywhere/DarkShaderInstance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.buuz135.darkmodeeverywhere; | ||
|
||
import com.mojang.blaze3d.shaders.Uniform; | ||
import com.mojang.blaze3d.vertex.VertexFormat; | ||
import net.minecraft.client.renderer.ShaderInstance; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.server.packs.resources.ResourceProvider; | ||
|
||
import java.io.IOException; | ||
|
||
public class DarkShaderInstance extends ShaderInstance { | ||
|
||
public final Uniform DivideFactor; | ||
public final Uniform PerceptionScale; | ||
|
||
public DarkShaderInstance(ResourceProvider p_173336_, ResourceLocation shaderLocation, VertexFormat p_173338_) throws IOException { | ||
super(p_173336_, shaderLocation, p_173338_); | ||
this.DivideFactor = this.getUniform("DivideFactor"); | ||
this.PerceptionScale = this.getUniform("PerceptionScale"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.