Class GuiUtils.ShaderChain
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.renderers.GuiUtils.ShaderChain
- Enclosing class:
GuiUtils
Allows multiple compound effects
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.platform.NativeImageapply(com.mojang.blaze3d.platform.NativeImage input) Apply the chain to an imageblur(int radius) brightness(float factor) Enable caching for this chaincolorFilter(float r, float g, float b) contrast(float factor) static GuiUtils.ShaderChaincreate()voiddrawTo(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height) Apply and draw the resultvoiddrawTo(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height, GuiUtils.BlendMode blendMode) Apply with blend modeedgeDetect(int edgeColor, int threshold) emboss()gamma(float gamma) hueShift(float degrees) invert()noise(float intensity) pixelate(int pixelSize) saturation(float factor) sepia()sharpen(float strength) then(PixelManipulator manipulator) Add a custom pixel manipulation effectthen(String name, PixelManipulator manipulator) Add a named effect for better debugging/cachingthreshold(int threshold) tint(int color, float strength)
-
Method Details
-
create
-
then
Add a custom pixel manipulation effect -
then
Add a named effect for better debugging/caching -
grayscale
-
invert
-
brightness
-
contrast
-
tint
-
colorFilter
-
hueShift
-
saturation
-
sepia
-
gamma
-
threshold
-
pixelate
-
noise
-
edgeDetect
-
blur
-
sharpen
-
emboss
-
mirrorHorizontal
-
mirrorVertical
-
mirrorBoth
-
mirror
-
cache
Enable caching for this chain -
apply
public com.mojang.blaze3d.platform.NativeImage apply(com.mojang.blaze3d.platform.NativeImage input) Apply the chain to an image -
drawTo
public void drawTo(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height) Apply and draw the result -
drawTo
public void drawTo(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texturePath, int x, int y, int width, int height, GuiUtils.BlendMode blendMode) Apply with blend mode
-