Class ScreenEffectDefinition.PassBuilder
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.effect.ScreenEffectDefinition.PassBuilder
- Enclosing class:
- ScreenEffectDefinition
-
Method Summary
Modifier and TypeMethodDescriptionbilinear(boolean bilinear) Samples the input with linear filtering.depthInput(String sampler, net.minecraft.resources.ResourceLocation target) Samples a target's depth assampler.Samples another target's color assampler, its full name in the shader (e.g.input(net.minecraft.resources.ResourceLocation target) The target read asDiffuseSampler.output(net.minecraft.resources.ResourceLocation target) Where it draws.textureInput(String sampler, net.minecraft.resources.ResourceLocation texture, int width, int height, boolean bilinear) Samplesassets/<namespace>/textures/effect/<path>.pngassampler.uniforms(ScreenEffectDefinition.UniformSpec... uniforms) Values for the program's uniforms, overriding its defaults.
-
Method Details
-
input
The target read asDiffuseSampler. Defaults tominecraft:main. -
bilinear
Samples the input with linear filtering. Off by default. -
input
public ScreenEffectDefinition.PassBuilder input(String sampler, net.minecraft.resources.ResourceLocation target) Samples another target's color assampler, its full name in the shader (e.g.PrevSampler). -
depthInput
public ScreenEffectDefinition.PassBuilder depthInput(String sampler, net.minecraft.resources.ResourceLocation target) Samples a target's depth assampler. -
textureInput
public ScreenEffectDefinition.PassBuilder textureInput(String sampler, net.minecraft.resources.ResourceLocation texture, int width, int height, boolean bilinear) Samplesassets/<namespace>/textures/effect/<path>.pngassampler. -
input
-
output
Where it draws. Defaults tominecraft:main. -
uniforms
Values for the program's uniforms, overriding its defaults. -
uniform
-