Class BlitPostStage
java.lang.Object
foundry.veil.api.client.render.post.stage.FramebufferPostStage
foundry.veil.api.client.render.post.stage.BlitPostStage
- All Implemented Interfaces:
PostPipeline,MutableUniformAccess,UniformAccess,AutoCloseable,org.lwjgl.system.NativeResource
A basic stage that draws a quad to the output using a specified shader.
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.post.PostPipeline
PostPipeline.Context -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlitPostStage(net.minecraft.resources.ResourceLocation shader, @Nullable net.minecraft.resources.ResourceLocation in, net.minecraft.resources.ResourceLocation out, boolean clear) Creates a new blit post stage that applies the specified shader. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PostPipeline.Context context) Applies this post effect.@Nullable ShaderProgramnet.minecraft.resources.ResourceLocationgetType()booleanhasStorageBlock(CharSequence name) Checks if the specified storage block exists in the shader.booleanhasUniform(CharSequence name) Checks if the specified uniform exists in the shader.booleanhasUniformBlock(CharSequence name) Checks if the specified uniform block exists in the shader.voidsetFloat(CharSequence name, float value) Sets a float in the shader.voidsetFloats(CharSequence name, float... values) Sets an array of floats in the shader.voidsetInt(CharSequence name, int value) Sets an integer in the shader.voidsetInts(CharSequence name, int... values) Sets an array of integers in the shader.voidsetMatrix(CharSequence name, org.joml.Matrix2fc value) Sets a matrix in the shader.voidsetMatrix(CharSequence name, org.joml.Matrix3fc value) Sets a matrix in the shader.voidsetMatrix(CharSequence name, org.joml.Matrix3x2fc value) Sets a matrix in the shader.voidsetMatrix(CharSequence name, org.joml.Matrix4fc value) Sets a matrix in the shader.voidsetMatrix(CharSequence name, org.joml.Matrix4x3fc value) Sets a matrix in the shader.voidsetStorageBlock(CharSequence name, int binding) Sets the binding to use for the specified storage block.voidsetUniformBlock(CharSequence name, int binding) Sets the binding to use for the specified uniform block.voidsetVector(CharSequence name, float x, float y) Sets a vector in the shader.voidsetVector(CharSequence name, float x, float y, float z) Sets a vector in the shader.voidsetVector(CharSequence name, float x, float y, float z, float w) Sets a vector in the shader.voidsetVectorI(CharSequence name, int x, int y) Sets an integer vector in the shader.voidsetVectorI(CharSequence name, int x, int y, int z) Sets an integer vector in the shader.voidsetVectorI(CharSequence name, int x, int y, int z, int w) Sets an integer vector in the shader.voidsetVectors(CharSequence name, org.joml.Vector2fc... values) Sets an array of vectors in the shader.voidsetVectors(CharSequence name, org.joml.Vector2ic... values) Sets an array of integer vectors in the shader.voidsetVectors(CharSequence name, org.joml.Vector3fc... values) Sets an array of vectors in the shader.voidsetVectors(CharSequence name, org.joml.Vector3ic... values) Sets an array of integer vectors in the shader.voidsetVectors(CharSequence name, org.joml.Vector4fc... values) Sets an array of vectors in the shader.voidsetVectors(CharSequence name, org.joml.Vector4ic... values) Sets an array of integer vectors in the shader.Methods inherited from class foundry.veil.api.client.render.post.stage.FramebufferPostStage
clearOut, getIn, getOut, setupFramebufferMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface foundry.veil.api.client.render.shader.program.MutableUniformAccess
applyRenderSystem, setVector, setVector, setVector, setVector, setVectorI, setVectorI, setVectorIMethods inherited from interface org.lwjgl.system.NativeResource
closeMethods inherited from interface foundry.veil.api.client.render.post.PostPipeline
free, getFloat, getFloats, getInt, getInts, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getStorageBlock, getUniform, getUniformBlock, getVector, getVector, getVector, getVector, getVector, getVector
-
Field Details
-
CODEC
-
-
Constructor Details
-
BlitPostStage
public BlitPostStage(net.minecraft.resources.ResourceLocation shader, @Nullable @Nullable net.minecraft.resources.ResourceLocation in, net.minecraft.resources.ResourceLocation out, boolean clear) Creates a new blit post stage that applies the specified shader.- Parameters:
shader- The shader to applyin- The framebuffer to use asDiffuseSampler0-DiffuseSampler7andDiffuseDepthSamplerout- The framebuffer to write intoclear- Whether to clear the output before drawing
-
-
Method Details
-
apply
Description copied from interface:PostPipelineApplies this post effect.PostProcessingManager.runPipeline(PostPipeline)should be called to run this pipeline.- Parameters:
context- The context to use when running this pipeline.
-
getType
- Returns:
- The type of post effect this is
-
hasUniform
Description copied from interface:UniformAccessChecks if the specified uniform exists in the shader.- Parameters:
name- The name of the uniform to check- Returns:
- Whether that uniform can be set
-
hasUniformBlock
Description copied from interface:UniformAccessChecks if the specified uniform block exists in the shader.- Parameters:
name- The name of the uniform block to check- Returns:
- Whether that uniform block can be set
-
hasStorageBlock
Description copied from interface:UniformAccessChecks if the specified storage block exists in the shader.- Parameters:
name- The name of the storage block to check- Returns:
- Whether that storage block can be set
-
setUniformBlock
Description copied from interface:MutableUniformAccessSets the binding to use for the specified uniform block.- Parameters:
name- The name of the block to setbinding- The binding to use for that block
-
setStorageBlock
Description copied from interface:MutableUniformAccessSets the binding to use for the specified storage block.- Parameters:
name- The name of the block to setbinding- The binding to use for that block
-
setFloat
Description copied from interface:MutableUniformAccessSets a float in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setVector
Description copied from interface:MutableUniformAccessSets a vector in the shader.- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vector
-
setVector
Description copied from interface:MutableUniformAccessSets a vector in the shader.- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVector
Description copied from interface:MutableUniformAccessSets a vector in the shader.- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setInt
Description copied from interface:MutableUniformAccessSets an integer in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setVectorI
Description copied from interface:MutableUniformAccessSets an integer vector in the shader.- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vector
-
setVectorI
Description copied from interface:MutableUniformAccessSets an integer vector in the shader.- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVectorI
Description copied from interface:MutableUniformAccessSets an integer vector in the shader.- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setFloats
Description copied from interface:MutableUniformAccessSets an array of floats in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of vectors in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of vectors in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of vectors in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setInts
Description copied from interface:MutableUniformAccessSets an array of integers in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of integer vectors in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of integer vectors in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of integer vectors in the shader.- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Parameters:
name- The name of the uniform to setvalue- The value to set
-
getShader
- Returns:
- The shader this stage should use
-
getShaderId
public net.minecraft.resources.ResourceLocation getShaderId()- Returns:
- The name of the shader this stage should use
-