Package com.jme3.post.filters
Class FXAAFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.FXAAFilter
- All Implemented Interfaces:
Savable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.post.Filter
Filter.Pass
-
Field Summary
Fields inherited from class com.jme3.post.Filter
defaultPass, enabled, material, postRenderPasses, processor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Material
Must return the material used for this filter.float
float
float
float
protected void
initFilter
(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Initialization of filter subclasses.protected boolean
Override this method and return true if you want the scene (input) texture to use bilinear filtering or false to use nearest filtering.void
setReduceMul
(float reduceMul) set to 0.0f for higher qualityvoid
setSpanMax
(float spanMax) void
setSubPixelShift
(float subPixelShift) set to 0.0f for higher qualityvoid
setVxOffset
(float vxOffset) Methods inherited from class com.jme3.post.Filter
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
-
Constructor Details
-
FXAAFilter
public FXAAFilter()
-
-
Method Details
-
initFilter
protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Description copied from class:Filter
Initialization of filter subclasses. This method is called once when the filter is added to the FilterPostProcessor It should contain Material initializations and extra passes initialization- Specified by:
initFilter
in classFilter
- Parameters:
manager
- the assetManagerrenderManager
- the renderManagervp
- the viewPort where this filter is renderedw
- the width of the filterh
- the height of the filter
-
getMaterial
Description copied from class:Filter
Must return the material used for this filter. this method is called every frame.- Specified by:
getMaterial
in classFilter
- Returns:
- the material used for this filter.
-
isRequiresBilinear
protected boolean isRequiresBilinear()Description copied from class:Filter
Override this method and return true if you want the scene (input) texture to use bilinear filtering or false to use nearest filtering. Typically, filters that perform samples in between pixels should enable bilinear filtering.- Overrides:
isRequiresBilinear
in classFilter
- Returns:
- true to use linear filtering, false to use nearest filtering.
-
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()
-