public final class TranslucentBucketFilter extends Filter
Filter.Pass
defaultPass, enabled, material, postRenderPasses, processor
Constructor and Description |
---|
TranslucentBucketFilter() |
TranslucentBucketFilter(boolean enabledSoftParticles) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUpFilter(Renderer r)
override this method if you have some cleanup to do
|
protected Material |
getMaterial()
Must return the material used for this filter.
|
protected void |
initFilter(AssetManager manager,
RenderManager rm,
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 |
isRequiresDepthTexture()
Override this method and return true if your Filter needs the depth texture
|
protected boolean |
isRequiresSceneTexture()
Override this method and return true if your Filter needs the scene texture
|
protected void |
postFrame(RenderManager renderManager,
ViewPort viewPort,
FrameBuffer prevFilterBuffer,
FrameBuffer sceneBuffer)
Override this method if you want to make a pass just after the frame has been rendered and just before the filter rendering
|
protected void |
setDepthTexture(Texture depthTexture)
Override if you want to do something special with the depth texture;
|
void |
setEnabled(boolean enabled)
Enable or disable this filter
|
cleanup, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, postFilter, postQueue, preFrame, read, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
public TranslucentBucketFilter()
public TranslucentBucketFilter(boolean enabledSoftParticles)
protected void initFilter(AssetManager manager, RenderManager rm, ViewPort vp, int w, int h)
Filter
initFilter
in class Filter
manager
- the assetManagerrm
- the renderManagervp
- the viewPort where this filter is renderedw
- the width of the filterh
- the height of the filterprotected void setDepthTexture(Texture depthTexture)
Filter
setDepthTexture
in class Filter
protected boolean isRequiresSceneTexture()
isRequiresSceneTexture
in class Filter
protected boolean isRequiresDepthTexture()
Filter
isRequiresDepthTexture
in class Filter
protected void postFrame(RenderManager renderManager, ViewPort viewPort, FrameBuffer prevFilterBuffer, FrameBuffer sceneBuffer)
Filter
protected void cleanUpFilter(Renderer r)
Filter
cleanUpFilter
in class Filter
r
- the rendererprotected Material getMaterial()
Filter
getMaterial
in class Filter
public void setEnabled(boolean enabled)
Filter
setEnabled
in class Filter
enabled
- true to enable