Filter.Pass
defaultPass, enabled, material, postRenderPasses, processor
Constructor and Description |
---|
FXAAFilter() |
Modifier and Type | Method and Description |
---|---|
protected Material |
getMaterial()
Must return the material used for this filter.
|
float |
getReduceMul() |
float |
getSpanMax() |
float |
getSubPixelShift() |
float |
getVxOffset() |
protected void |
initFilter(AssetManager manager,
RenderManager renderManager,
ViewPort vp,
int w,
int h)
Initialization of sub classes filters
This method is called once when the filter is added to the FilterPostProcessor
It should contain Material initializations and extra passes initialization
|
protected boolean |
isRequiresBilinear()
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 quality
|
void |
setSpanMax(float spanMax) |
void |
setSubPixelShift(float subPixelShift)
set to 0.0f for higher quality
|
void |
setVxOffset(float vxOffset) |
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h)
Filter
initFilter
in class Filter
manager
- the assetManagerrenderManager
- the renderManagervp
- the viewPort where this filter is renderedw
- the width of the filterh
- the height of the filterprotected Material getMaterial()
Filter
getMaterial
in class Filter
protected boolean isRequiresBilinear()
Filter
isRequiresBilinear
in class Filter
public void setSpanMax(float spanMax)
public void setSubPixelShift(float subPixelShift)
subPixelShift
- public void setReduceMul(float reduceMul)
reduceMul
- public void setVxOffset(float vxOffset)
public float getReduceMul()
public float getSpanMax()
public float getSubPixelShift()
public float getVxOffset()