Filter.Pass
defaultPass, enabled, material, postRenderPasses, processor
Constructor and Description |
---|
RadialBlurFilter()
Creates a RadialBlurFilter
|
RadialBlurFilter(float sampleDist,
float sampleStrength)
Creates a RadialBlurFilter
|
Modifier and Type | Method and Description |
---|---|
protected Material |
getMaterial()
Must return the material used for this filter.
|
float |
getSampleDist()
Deprecated.
|
float |
getSampleDistance()
return the sample distance
|
float |
getSampleStrength()
Returns the sample Strength
|
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
|
void |
read(JmeImporter im)
Override this method if you want to load extra properties when the filter
is loaded else only basic properties of the filter will be loaded
This method should always begin by super.read(im);
|
void |
setSampleDist(float sampleDist)
Deprecated.
|
void |
setSampleDistance(float sampleDist)
sets the samples distances default is 1
|
void |
setSampleStrength(float sampleStrength)
sets the sample strength default is 2.2
|
void |
write(JmeExporter ex)
Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved
This method should always begin by super.write(ex);
|
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
public RadialBlurFilter()
public RadialBlurFilter(float sampleDist, float sampleStrength)
sampleDist
- the distance between samplessampleStrength
- the strength of each sampleprotected Material getMaterial()
Filter
getMaterial
in class Filter
public float getSampleDistance()
public void setSampleDistance(float sampleDist)
sampleDist
- the desired distance (default=1)@Deprecated public float getSampleDist()
getSampleDistance()
@Deprecated public void setSampleDist(float sampleDist)
setSampleDistance(float sampleDist)
sampleDist
- the desired distance (default=1)public float getSampleStrength()
public void setSampleStrength(float sampleStrength)
sampleStrength
- the desired strength (default=2.2)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 filterpublic void write(JmeExporter ex) throws java.io.IOException
Filter
public void read(JmeImporter im) throws java.io.IOException
Filter