Package com.jme3.post.filters
Class RadialBlurFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.RadialBlurFilter
- All Implemented Interfaces:
com.jme3.export.Savable
public class RadialBlurFilter
extends com.jme3.post.Filter
Radially blurs the scene from the center of it
- Author:
- Rémy Bouquet aka Nehon
-
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
ConstructorsConstructorDescriptionCreates a RadialBlurFilterRadialBlurFilter(float sampleDist, float sampleStrength) Creates a RadialBlurFilter -
Method Summary
Modifier and TypeMethodDescriptionprotected com.jme3.material.MaterialfloatDeprecated.floatreturn the sample distancefloatReturns the sample Strengthprotected voidinitFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h) voidread(com.jme3.export.JmeImporter im) voidsetSampleDist(float sampleDist) Deprecated.voidsetSampleDistance(float sampleDist) sets the samples distances default is 1voidsetSampleStrength(float sampleStrength) sets the sample strength default is 2.2voidwrite(com.jme3.export.JmeExporter ex) Methods inherited from class com.jme3.post.Filter
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
-
Constructor Details
-
RadialBlurFilter
public RadialBlurFilter()Creates a RadialBlurFilter -
RadialBlurFilter
public RadialBlurFilter(float sampleDist, float sampleStrength) Creates a RadialBlurFilter- Parameters:
sampleDist- the distance between samplessampleStrength- the strength of each sample
-
-
Method Details
-
getMaterial
protected com.jme3.material.Material getMaterial()- Specified by:
getMaterialin classcom.jme3.post.Filter
-
getSampleDistance
public float getSampleDistance()return the sample distance- Returns:
- the distance
-
setSampleDistance
public void setSampleDistance(float sampleDist) sets the samples distances default is 1- Parameters:
sampleDist- the desired distance (default=1)
-
getSampleDist
Deprecated.- Returns:
- the distance
-
setSampleDist
Deprecated.- Parameters:
sampleDist- the desired distance (default=1)
-
getSampleStrength
public float getSampleStrength()Returns the sample Strength- Returns:
- the strength value
-
setSampleStrength
public void setSampleStrength(float sampleStrength) sets the sample strength default is 2.2- Parameters:
sampleStrength- the desired strength (default=2.2)
-
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:
initFilterin classcom.jme3.post.Filter
-
write
- Specified by:
writein interfacecom.jme3.export.Savable- Overrides:
writein classcom.jme3.post.Filter- Throws:
IOException
-
read
- Specified by:
readin interfacecom.jme3.export.Savable- Overrides:
readin classcom.jme3.post.Filter- Throws:
IOException
-
getSampleDistance()