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
-
Constructor Summary
ConstructorDescriptionBlitPostStage
(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 TypeMethodDescriptionvoid
apply
(PostPipeline.Context context) Applies this post effect.@Nullable ShaderProgram
net.minecraft.resources.ResourceLocation
getType()
boolean
hasStorageBlock
(CharSequence name) Checks if the specified storage block exists in the shader.boolean
hasUniform
(CharSequence name) Checks if the specified uniform exists in the shader.boolean
hasUniformBlock
(CharSequence name) Checks if the specified uniform block exists in the shader.void
setFloat
(CharSequence name, float value) Sets a float in the shader.void
setFloats
(CharSequence name, float... values) Sets an array of floats in the shader.void
setInt
(CharSequence name, int value) Sets an integer in the shader.void
setInts
(CharSequence name, int... values) Sets an array of integers in the shader.void
setMatrix
(CharSequence name, org.joml.Matrix2fc value) Sets a matrix in the shader.void
setMatrix
(CharSequence name, org.joml.Matrix3fc value) Sets a matrix in the shader.void
setMatrix
(CharSequence name, org.joml.Matrix3x2fc value) Sets a matrix in the shader.void
setMatrix
(CharSequence name, org.joml.Matrix4fc value) Sets a matrix in the shader.void
setMatrix
(CharSequence name, org.joml.Matrix4x3fc value) Sets a matrix in the shader.void
setStorageBlock
(CharSequence name, int binding) Sets the binding to use for the specified storage block.void
setUniformBlock
(CharSequence name, int binding) Sets the binding to use for the specified uniform block.void
setVector
(CharSequence name, float x, float y) Sets a vector in the shader.void
setVector
(CharSequence name, float x, float y, float z) Sets a vector in the shader.void
setVector
(CharSequence name, float x, float y, float z, float w) Sets a vector in the shader.void
setVectorI
(CharSequence name, int x, int y) Sets an integer vector in the shader.void
setVectorI
(CharSequence name, int x, int y, int z) Sets an integer vector in the shader.void
setVectorI
(CharSequence name, int x, int y, int z, int w) Sets an integer vector in the shader.void
setVectors
(CharSequence name, org.joml.Vector2fc... values) Sets an array of vectors in the shader.void
setVectors
(CharSequence name, org.joml.Vector2ic... values) Sets an array of integer vectors in the shader.void
setVectors
(CharSequence name, org.joml.Vector3fc... values) Sets an array of vectors in the shader.void
setVectors
(CharSequence name, org.joml.Vector3ic... values) Sets an array of integer vectors in the shader.void
setVectors
(CharSequence name, org.joml.Vector4fc... values) Sets an array of vectors in the shader.void
setVectors
(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, setupFramebuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.client.render.shader.program.MutableUniformAccess
applyRenderSystem, setVector, setVector, setVector, setVector, setVectorI, setVectorI, setVectorI
Methods inherited from interface org.lwjgl.system.NativeResource
close
Methods 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
-DiffuseSampler7
andDiffuseDepthSampler
out
- The framebuffer to write intoclear
- Whether to clear the output before drawing
-
-
Method Details
-
apply
Description copied from interface:PostPipeline
Applies 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:UniformAccess
Checks 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:UniformAccess
Checks 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:UniformAccess
Checks 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets a float in the shader.- Parameters:
name
- The name of the uniform to setvalue
- The value to set
-
setVector
Description copied from interface:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets an integer in the shader.- Parameters:
name
- The name of the uniform to setvalue
- The value to set
-
setVectorI
Description copied from interface:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets 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:MutableUniformAccess
Sets a matrix in the shader.- Parameters:
name
- The name of the uniform to setvalue
- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccess
Sets a matrix in the shader.- Parameters:
name
- The name of the uniform to setvalue
- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccess
Sets a matrix in the shader.- Parameters:
name
- The name of the uniform to setvalue
- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccess
Sets a matrix in the shader.- Parameters:
name
- The name of the uniform to setvalue
- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccess
Sets 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
-