Package postprocess

Class BloomEffect


public class BloomEffect extends PostProcessPipeline
Post Processing Pipeline to apply a bloom effect to a Texture.
  • Constructor Details

    • BloomEffect

      public BloomEffect(PostProcessStep.Target dest)
      To construct a Bloom Effect Pipeline with a bloom of 0.8
      Parameters:
      dest - Where the final texture is to be rendered
    • BloomEffect

      public BloomEffect(PostProcessStep.Target dest, float bloomAmt)
      To construct a Bloom Effect Pipeline with a bloom of 0.8
      Parameters:
      dest - Where the final texture is to be rendered
      bloomAmt - amount of bloom to be applied
  • Method Details

    • init

      public void init()
      Initializes all steps in this pipeline
      Specified by:
      init in class PostProcessPipeline
    • apply

      public Texture apply(Texture input)
      Apply the bloom effect and return the final texture if not rendering to the default framebuffer
      Specified by:
      apply in class PostProcessPipeline
      Parameters:
      input - input texture to bee processed
      Returns:
      the final texture if not rendering to the default framebuffer