Package postprocess

Class BrightFilter


public class BrightFilter extends PostProcessStep
A Post Processing Step that only renders bright parts of the scene
  • Constructor Details

    • BrightFilter

      public BrightFilter(PostProcessStep.Target target)
      Default Constructor
      Parameters:
      target - Where the final texture is to be rendered
  • Method Details

    • createShader

      public Shader createShader()
      Create the shader to be used for this step
      Specified by:
      createShader in class PostProcessStep
      Returns:
      the created shader
    • prepare

      public void prepare()
      Prepare the framebuffer by clearing it and binding any textures required
      Specified by:
      prepare in class PostProcessStep
    • uploadUniforms

      protected void uploadUniforms(Shader shader)
      Upload uniforms to the shader
      Specified by:
      uploadUniforms in class PostProcessStep
    • setTexture

      public void setTexture(Texture texture)
      Set the input texture
      Parameters:
      texture - input texture