Class ChromaticAberrationFilter

java.lang.Object
gaiasky.render.postprocess.filters.Filter<ChromaticAberrationFilter>
gaiasky.render.postprocess.filters.ChromaticAberrationFilter
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public final class ChromaticAberrationFilter extends Filter<ChromaticAberrationFilter>
  • Constructor Details

    • ChromaticAberrationFilter

      public ChromaticAberrationFilter(float amount)
      Creates a chromatic aberration filter with the given aberration amount.
      Parameters:
      amount - The aberration amount in [0,0.2].
  • Method Details

    • setAberrationAmount

      public void setAberrationAmount(float amount)
      Updates the chromatic aberration amount.
      Parameters:
      amount - The aberration amount in [0,0.2].
    • getAberrationAmount

      public float getAberrationAmount()
    • rebind

      public void rebind()
      Specified by:
      rebind in class Filter<ChromaticAberrationFilter>
    • 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<ChromaticAberrationFilter>