Package postprocess

Class PostProcessStep

java.lang.Object
postprocess.PostProcessStep
Direct Known Subclasses:
BrightFilter, ForwardToTexture, HorizontalBlur, VerticalBlur, WeightedCombine

public abstract class PostProcessStep extends Object
Denotes A Step in Post Processing
  • Field Details

    • framebuffer

      public Framebuffer framebuffer
      The framebuffer to which to render to
  • Constructor Details

  • Method Details

    • createShader

      public abstract Shader createShader()
      Create the shader to be used for this step
    • prepare

      public abstract void prepare()
      Prepare the framebuffer by clearing it and binding any textures required
    • uploadUniforms

      protected abstract void uploadUniforms(Shader shader)
      Upload uniforms to the shader
    • createFramebuffer

      protected Framebuffer createFramebuffer()
      Create Framebuffer based on target
    • init

      public void init()
      Create the shader and framebuffer
    • apply

      public Texture apply()
      Run this Step
      Returns:
      id of the texture if the framebuffer to render to is not default.