Class FXAAFilter

java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.FXAAFilter
All Implemented Interfaces:
com.jme3.export.Savable

public class FXAAFilter extends com.jme3.post.Filter
Author:
Phate666 (adapted to jme3)
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.jme3.post.Filter

    com.jme3.post.Filter.Pass
  • Field Summary

    Fields inherited from class com.jme3.post.Filter

    defaultPass, enabled, material, postRenderPasses, processor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.jme3.material.Material
     
    float
     
    float
     
    float
     
    float
     
    protected void
    initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h)
     
    protected boolean
     
    void
    read(com.jme3.export.JmeImporter importer)
    Load properties when the filter is de-serialized, for example when loading from a J3O file.
    void
    setReduceMul(float reduceMul)
    set to 0.0f for higher quality
    void
    setSpanMax(float spanMax)
     
    void
    setSubPixelShift(float subPixelShift)
    set to 0.0f for higher quality
    void
    setVxOffset(float vxOffset)
     
    void
    write(com.jme3.export.JmeExporter exporter)
    Save properties when the filter is serialized, for example when saving to a J3O file.

    Methods inherited from class com.jme3.post.Filter

    cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FXAAFilter

      public FXAAFilter()
  • Method Details

    • initFilter

      protected void initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h)
      Specified by:
      initFilter in class com.jme3.post.Filter
    • getMaterial

      protected com.jme3.material.Material getMaterial()
      Specified by:
      getMaterial in class com.jme3.post.Filter
    • isRequiresBilinear

      protected boolean isRequiresBilinear()
      Overrides:
      isRequiresBilinear in class com.jme3.post.Filter
    • setSpanMax

      public void setSpanMax(float spanMax)
    • setSubPixelShift

      public void setSubPixelShift(float subPixelShift)
      set to 0.0f for higher quality
      Parameters:
      subPixelShift - the desired shift (default=0.25)
    • setReduceMul

      public void setReduceMul(float reduceMul)
      set to 0.0f for higher quality
      Parameters:
      reduceMul - the desired value (default=0.125)
    • setVxOffset

      public void setVxOffset(float vxOffset)
    • getReduceMul

      public float getReduceMul()
    • getSpanMax

      public float getSpanMax()
    • getSubPixelShift

      public float getSubPixelShift()
    • getVxOffset

      public float getVxOffset()
    • read

      public void read(com.jme3.export.JmeImporter importer) throws IOException
      Load properties when the filter is de-serialized, for example when loading from a J3O file.
      Specified by:
      read in interface com.jme3.export.Savable
      Overrides:
      read in class com.jme3.post.Filter
      Parameters:
      importer - the importer to use (not null)
      Throws:
      IOException - from the importer
    • write

      public void write(com.jme3.export.JmeExporter exporter) throws IOException
      Save properties when the filter is serialized, for example when saving to a J3O file.
      Specified by:
      write in interface com.jme3.export.Savable
      Overrides:
      write in class com.jme3.post.Filter
      Parameters:
      exporter - the exporter to use (not null)
      Throws:
      IOException - from the exporter