Class CopyPostStage

java.lang.Object
foundry.veil.api.client.render.post.stage.FramebufferPostStage
foundry.veil.api.client.render.post.stage.CopyPostStage
All Implemented Interfaces:
PostPipeline, MutableUniformAccess, UniformAccess, AutoCloseable, org.lwjgl.system.NativeResource

public class CopyPostStage extends FramebufferPostStage
Copies data from one framebuffer to another.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<CopyPostStage> CODEC
  • Constructor Details

    • CopyPostStage

      public CopyPostStage(net.minecraft.resources.ResourceLocation in, net.minecraft.resources.ResourceLocation out, boolean copyColor, boolean copyDepth, boolean linear)
      Creates a new blit post stage that applies the specified shader.
      Parameters:
      in - The framebuffer to copy from
      out - The framebuffer to write into
      copyColor - Whether to copy the color buffers
      copyDepth - Whether to copy the depth buffers
      linear - Whether to copy with a linear filter if the input size doesn't match the output size
  • Method Details

    • apply

      public void apply(PostPipeline.Context context)
      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
    • getIn

      public net.minecraft.resources.ResourceLocation getIn()
      Overrides:
      getIn in class FramebufferPostStage
      Returns:
      The framebuffer to read from
    • getMask

      public int getMask()
      Returns:
      The mask to use when copying from one buffer to another
    • getFilter

      public int getFilter()
      Returns:
      The filter to use when copying from one buffer to another
    • copyColor

      public boolean copyColor()
      Returns:
      Whether color is copied from the buffer
    • copyDepth

      public boolean copyDepth()
      Returns:
      Whether depth is copied from the buffer
    • isLinear

      public boolean isLinear()
      Returns:
      Whether to copy with a linear filter if the input size doesn't match the output size