Class SmaaBlendFilter

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

public final class SmaaBlendFilter extends Filter<SmaaBlendFilter>
SMAA neighbourhood blending pass. Blends each pixel with its neighbour along the edge, using the weights computed by SmaaWeightsFilter. The SMAA algorithm is by Jorge Jimenez et al.; see assets/shader/postprocess/smaa-LICENSE.md.
  • Constructor Details

    • SmaaBlendFilter

      public SmaaBlendFilter(float viewportWidth, float viewportHeight)
      Parameters:
      viewportWidth - The viewport width in pixels.
      viewportHeight - The viewport height in pixels.
  • Method Details

    • setViewportSize

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

      public void setBlendTexture(com.badlogic.gdx.graphics.Texture blendTexture)
      Sets the buffer with the blending weights computed in the previous pass.
      Parameters:
      blendTexture - The blending weights texture.
    • rebind

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