Filter.Pass
defaultPass, enabled, material, postRenderPasses, processor
Constructor and Description |
---|
FadeFilter()
Creates a FadeFilter
|
FadeFilter(float duration)
Creates a FadeFilter with the given duration
|
Modifier and Type | Method and Description |
---|---|
void |
fadeIn()
fades the scene in (black to scene)
|
void |
fadeOut()
fades the scene out (scene to black)
|
float |
getDuration()
returns the duration of the effect
|
protected Material |
getMaterial()
Must return the material used for this filter.
|
float |
getValue()
Returns the current fade value.
|
protected void |
initFilter(AssetManager manager,
RenderManager renderManager,
ViewPort vp,
int w,
int h)
Initialization of filter subclasses.
|
void |
pause() |
protected void |
preFrame(float tpf)
Override this method if you want to modify parameters according to tpf before the rendering of the frame.
|
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 |
setDuration(float duration)
Sets the duration of the filter default is 1 second
|
void |
setValue(float value)
Sets the fade value.
|
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, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer
public FadeFilter()
public FadeFilter(float duration)
duration
- the desired duration (in seconds, default=1)protected Material getMaterial()
Filter
getMaterial
in class Filter
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 void preFrame(float tpf)
Filter
public float getDuration()
public void setDuration(float duration)
duration
- the desired duration (in seconds, default=1)public void fadeIn()
public void fadeOut()
public void pause()
public void write(JmeExporter ex) throws java.io.IOException
Filter
public void read(JmeImporter im) throws java.io.IOException
Filter
public float getValue()
public void setValue(float value)
value
- the desired value (default=1)