java.lang.Object
gaiasky.util.gdx.contrib.postprocess.filters.Filter<Flare>
gaiasky.util.gdx.contrib.postprocess.filters.Flare

public final class Flare extends Filter<Flare>
Lens flare effect as described in John Chapman's article (without lens dirt or diffraction starburst). Lens color image (lenscolor.png) is located in src/main/resources/ folder.
See Also:
http://john-chapman-graphics.blogspot.co.uk/2013/02/pseudo-lens-flare.html
  • Constructor Details

    • Flare

      public Flare(int width, int height)
  • Method Details

    • setViewportSize

      public void setViewportSize(float width, float height)
    • getGhosts

      public int getGhosts()
    • setGhosts

      public void setGhosts(int ghosts)
    • getHaloWidth

      public float getHaloWidth()
    • setHaloWidth

      public void setHaloWidth(float haloWidth)
    • setLensColorTexture

      public void setLensColorTexture(com.badlogic.gdx.graphics.Texture tex)
    • rebind

      public void rebind()
      Description copied from class: Filter
      FIXME add comment
      Specified by:
      rebind in class Filter<Flare>
    • onBeforeRender

      protected void onBeforeRender()
      Description copied from class: Filter
      This method will get called just before a rendering operation occurs.
      Specified by:
      onBeforeRender in class Filter<Flare>