Class ShaderUtils

java.lang.Object
com.wdiscute.starcatcher.ShaderUtils

public class ShaderUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    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)
     
    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 uOffset, int vOffset, int uWidth, int vHeight)
     
    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)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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 uOffset, int vOffset, int uWidth, int vHeight)
    • 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)