|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.post.Filter
com.jme3.post.filters.TranslucentBucketFilter
public final class TranslucentBucketFilter
A filter to handle translucent objects when rendering a scene with filters that uses depth like WaterFilter and SSAOFilter just create a TranslucentBucketFilter and add it to the Filter list of a FilterPostPorcessor
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.post.Filter |
---|
Filter.Pass |
Field Summary |
---|
Fields inherited from class com.jme3.post.Filter |
---|
defaultPass, enabled, material, postRenderPasses, processor |
Constructor Summary | |
---|---|
TranslucentBucketFilter()
|
|
TranslucentBucketFilter(boolean enabledSoftParticles)
|
Method Summary | |
---|---|
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 false if your Filter does not need 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 |
Methods inherited from class com.jme3.post.Filter |
---|
cleanup, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, postQueue, preFrame, read, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslucentBucketFilter()
public TranslucentBucketFilter(boolean enabledSoftParticles)
Method Detail |
---|
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
postFrame
in class 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |