Filter.Pass
defaultPass, enabled, material, postRenderPasses, processor
Constructor and Description |
---|
CartoonSSAO(boolean instancedRendering)
Create a Screen Space Ambient Occlusion Filter.
|
CartoonSSAO(CartoonSSAO cloneFrom)
Create a Screen Space Ambient Occlusion Filter from the given one (by copy).
|
CartoonSSAO(float downsample,
boolean instancedRendering)
Create a Screen Space Ambient Occlusion Filter.
|
Modifier and Type | Method and Description |
---|---|
float |
getDownsampling()
Get the down sampling value.
|
protected Material |
getMaterial()
Must return the material used for this filter.
|
protected void |
initFilter(AssetManager manager,
RenderManager renderManager,
ViewPort vp,
int w,
int h)
Initialization of filter subclasses.
|
boolean |
isOutlineEnabled()
Is outline rendering is enabled.
|
protected boolean |
isRequiresDepthTexture()
Override this method and return true if your Filter needs the depth texture
|
protected void |
postQueue(RenderQueue renderQueue)
Override this method if you want to make a pre pass, before the actual rendering of the frame
|
void |
setDistance(float dist)
Set the distance of the material.
|
void |
setDownsampling(float downsample)
Set the down sampling value.
|
void |
setOutlineEnabled(boolean set)
Set if outline has to be enabled.
|
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, postFrame, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, write
public CartoonSSAO(boolean instancedRendering)
instancedRendering
- true
if this filter has to use instance rendering and false
(default) otherwise.public CartoonSSAO(float downsample, boolean instancedRendering)
downsample
- factor to divide resolution by for filter, >1 increases speed but degrades quality.instancedRendering
- true
if this filter has to use instance rendering and false
(default) otherwise.public CartoonSSAO(CartoonSSAO cloneFrom)
cloneFrom
- the original filter.protected boolean isRequiresDepthTexture()
Filter
isRequiresDepthTexture
in class Filter
protected void postQueue(RenderQueue renderQueue)
Filter
public void setOutlineEnabled(boolean set)
set
- true
if the outline has to be enabled and false
otherwise.isOutlineEnabled()
public boolean isOutlineEnabled()
true
if the outline is enabled and false
otherwise.setOutlineEnabled(boolean)
public void setDownsampling(float downsample)
downsample
- the down sampling value.getDownsampling()
public float getDownsampling()
setDownsampling(float)
protected Material getMaterial()
Filter
getMaterial
in class Filter
public void setDistance(float dist)
dist
- the distance of the material.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 filter