Class FxaaFilter

java.lang.Object
arc.fx.FxFilter
arc.fx.filters.FxaaFilter
All Implemented Interfaces:
Disposable

public final class FxaaFilter extends FxFilter
Fast approximate anti-aliasing filter.
  • Field Details

    • viewportInverse

      public final Vec2 viewportInverse
    • fxaaReduceMin

      public float fxaaReduceMin
    • fxaaReduceMul

      public float fxaaReduceMul
    • fxaaSpanMax

      public float fxaaSpanMax
  • Constructor Details

    • FxaaFilter

      public FxaaFilter()
    • FxaaFilter

      public FxaaFilter(float fxaaReduceMin, float fxaaReduceMul, float fxaaSpanMax, boolean supportAlpha)
  • Method Details

    • resize

      public void resize(int width, int height)
      Description copied from class: FxFilter
      This method should be called once filter will be added. Also it must be called on every application resize as usual.
      Overrides:
      resize in class FxFilter
    • setParams

      public void setParams()
      Description copied from class: FxFilter
      Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost. Eg., framebuffer textures should be updated and shader parameters should be reuploaded/rebound.
      Overrides:
      setParams in class FxFilter