Package com.jme3.post
Class CartoonSSAO
java.lang.Object
com.jme3.post.Filter
com.jme3.post.CartoonSSAO
- All Implemented Interfaces:
- Savable
Deprecated.
The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
             For new Virtual Reality projects, use user libraries that provide OpenXR support.
             See Virtual Reality JME wiki section
             for more information.
A Cartoon Screen Space Ambient Occlusion filter with instance rendering capabilities.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.jme3.post.FilterFilter.Pass
- 
Field SummaryFields inherited from class com.jme3.post.FilterdefaultPass, enabled, material, postRenderPasses, processor
- 
Constructor SummaryConstructorsConstructorDescriptionCartoonSSAO(boolean instancedRendering) Deprecated.Create a Screen Space Ambient Occlusion Filter.CartoonSSAO(float downsample, boolean instancedRendering) Deprecated.Create a Screen Space Ambient Occlusion Filter.CartoonSSAO(CartoonSSAO cloneFrom) Deprecated.Create a Screen Space Ambient Occlusion Filter from the given one (by copy).
- 
Method SummaryModifier and TypeMethodDescriptionfloatDeprecated.Get the down sampling value.protected MaterialDeprecated.Must return the material used for this filter.protected voidinitFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Deprecated.Initialization of filter subclasses.booleanDeprecated.Is outline rendering is enabled.protected booleanDeprecated.Override this method and return true if your Filter needs the depth textureprotected voidpostQueue(RenderQueue renderQueue) Deprecated.Override this method if you want to make a pre pass, before the actual rendering of the framevoidsetDistance(float dist) Deprecated.Set the distance of the material.voidsetDownsampling(float downsample) Deprecated.Set the down sampling value.voidsetOutlineEnabled(boolean set) Deprecated.Set if outline has to be enabled.Methods inherited from class com.jme3.post.Filtercleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, postFrame, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
- 
Constructor Details- 
CartoonSSAOpublic CartoonSSAO(boolean instancedRendering) Deprecated.Create a Screen Space Ambient Occlusion Filter.- Parameters:
- instancedRendering-- trueif this filter has to use instance rendering and- false(default) otherwise.
 
- 
CartoonSSAOpublic CartoonSSAO(float downsample, boolean instancedRendering) Deprecated.Create a Screen Space Ambient Occlusion Filter.- Parameters:
- downsample- factor to divide resolution by for filter, >1 increases speed but degrades quality.
- instancedRendering-- trueif this filter has to use instance rendering and- false(default) otherwise.
 
- 
CartoonSSAODeprecated.Create a Screen Space Ambient Occlusion Filter from the given one (by copy).- Parameters:
- cloneFrom- the original filter.
 
 
- 
- 
Method Details- 
isRequiresDepthTextureprotected boolean isRequiresDepthTexture()Deprecated.Description copied from class:FilterOverride this method and return true if your Filter needs the depth texture- Overrides:
- isRequiresDepthTexturein class- Filter
- Returns:
- true if your Filter need the depth texture
 
- 
postQueueDeprecated.Description copied from class:FilterOverride this method if you want to make a pre pass, before the actual rendering of the frame
- 
setOutlineEnabledpublic void setOutlineEnabled(boolean set) Deprecated.Set if outline has to be enabled.- Parameters:
- set-- trueif the outline has to be enabled and- falseotherwise.
- See Also:
 
- 
isOutlineEnabledpublic boolean isOutlineEnabled()Deprecated.Is outline rendering is enabled.- Returns:
- trueif the outline is enabled and- falseotherwise.
- See Also:
 
- 
setDownsamplingpublic void setDownsampling(float downsample) Deprecated.Set the down sampling value.- Parameters:
- downsample- the down sampling value.
- See Also:
 
- 
getDownsamplingpublic float getDownsampling()Deprecated.Get the down sampling value.- Returns:
- the down sampling value.
- See Also:
 
- 
getMaterialDeprecated.Description copied from class:FilterMust return the material used for this filter. this method is called every frame.- Specified by:
- getMaterialin class- Filter
- Returns:
- the material used for this filter.
 
- 
setDistancepublic void setDistance(float dist) Deprecated.Set the distance of the material.- Parameters:
- dist- the distance of the material.
 
- 
initFilterprotected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Deprecated.Description copied from class:FilterInitialization of filter subclasses. This method is called once when the filter is added to the FilterPostProcessor It should contain Material initializations and extra passes initialization- Specified by:
- initFilterin class- Filter
- Parameters:
- manager- the assetManager
- renderManager- the renderManager
- vp- the viewPort where this filter is rendered
- w- the width of the filter
- h- the height of the filter
 
 
-