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 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
ConstructorsConstructorDescriptionCartoonSSAO(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 Summary
Modifier 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.Filter
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, postFrame, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
-
Constructor Details
-
CartoonSSAO
public CartoonSSAO(boolean instancedRendering) Deprecated.Create a Screen Space Ambient Occlusion Filter.- Parameters:
instancedRendering-trueif this filter has to use instance rendering andfalse(default) otherwise.
-
CartoonSSAO
public 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 andfalse(default) otherwise.
-
CartoonSSAO
Deprecated.Create a Screen Space Ambient Occlusion Filter from the given one (by copy).- Parameters:
cloneFrom- the original filter.
-
-
Method Details
-
isRequiresDepthTexture
protected boolean isRequiresDepthTexture()Deprecated.Description copied from class:FilterOverride this method and return true if your Filter needs the depth texture- Overrides:
isRequiresDepthTexturein classFilter- Returns:
- true if your Filter need the depth texture
-
postQueue
Deprecated.Description copied from class:FilterOverride this method if you want to make a pre pass, before the actual rendering of the frame -
setOutlineEnabled
public void setOutlineEnabled(boolean set) Deprecated.Set if outline has to be enabled.- Parameters:
set-trueif the outline has to be enabled andfalseotherwise.- See Also:
-
isOutlineEnabled
public boolean isOutlineEnabled()Deprecated.Is outline rendering is enabled.- Returns:
trueif the outline is enabled andfalseotherwise.- See Also:
-
setDownsampling
public void setDownsampling(float downsample) Deprecated.Set the down sampling value.- Parameters:
downsample- the down sampling value.- See Also:
-
getDownsampling
public float getDownsampling()Deprecated.Get the down sampling value.- Returns:
- the down sampling value.
- See Also:
-
getMaterial
Deprecated.Description copied from class:FilterMust return the material used for this filter. this method is called every frame.- Specified by:
getMaterialin classFilter- Returns:
- the material used for this filter.
-
setDistance
public void setDistance(float dist) Deprecated.Set the distance of the material.- Parameters:
dist- the distance of the material.
-
initFilter
protected 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 classFilter- Parameters:
manager- the assetManagerrenderManager- the renderManagervp- the viewPort where this filter is renderedw- the width of the filterh- the height of the filter
-