Package com.wdiscute.starcatcher
Class ShaderUtils
java.lang.Object
com.wdiscute.starcatcher.ShaderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidblitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, float uOffset, float vOffset, int width, int height, int textureWidth, int textureHeight) static voidblitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, int blitOffset, float uOffset, float vOffset, int uWidth, int vHeight, int textureWidth, int textureHeight) static voidblitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, int width, int height, float uOffset, float vOffset, int uWidth, int vHeight, int textureWidth, int textureHeight) static voidblitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, int uOffset, int vOffset, int uWidth, int vHeight) static voidsetUpFadeShader(float width, float height, net.minecraft.world.phys.Vec2 fadeLeft, net.minecraft.world.phys.Vec2 fadeRight, net.minecraft.world.phys.Vec2 fadeUp, net.minecraft.world.phys.Vec2 fadeDown, boolean invertAlpha) each of the vectors holds a start value and an end value (clamped 0.0 - 1.0)
-
Constructor Details
-
ShaderUtils
public ShaderUtils()
-
-
Method Details
-
setUpFadeShader
public static void setUpFadeShader(float width, float height, net.minecraft.world.phys.Vec2 fadeLeft, net.minecraft.world.phys.Vec2 fadeRight, net.minecraft.world.phys.Vec2 fadeUp, net.minecraft.world.phys.Vec2 fadeDown, boolean invertAlpha) each of the vectors holds a start value and an end value (clamped 0.0 - 1.0) -
blitWithShader
-
blitWithShader
public static void blitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, int blitOffset, float uOffset, float vOffset, int uWidth, int vHeight, int textureWidth, int textureHeight) -
blitWithShader
public static void blitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, int width, int height, float uOffset, float vOffset, int uWidth, int vHeight, int textureWidth, int textureHeight) -
blitWithShader
public static void blitWithShader(Supplier<net.minecraft.client.renderer.ShaderInstance> shader, Runnable shaderSetUp, net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation atlasLocation, int x, int y, float uOffset, float vOffset, int width, int height, int textureWidth, int textureHeight)
-