public class CartoonEdgeFilter
extends com.jme3.post.Filter
| Constructor and Description |
|---|
CartoonEdgeFilter()
Creates a CartoonEdgeFilter
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUpFilter(com.jme3.renderer.Renderer r) |
float |
getDepthSensitivity()
Return the depth sensitivity
for more details see setDepthSensitivity(float depthSensitivity) |
float |
getDepthThreshold()
returns the depth threshold
for more details see setDepthThreshold(float depthThreshold) |
com.jme3.math.ColorRGBA |
getEdgeColor()
returns the edge color
|
float |
getEdgeIntensity()
returns the edge intensity
for more details see setEdgeIntensity(float edgeIntensity) |
float |
getEdgeWidth()
returns the width of the edges
|
protected com.jme3.material.Material |
getMaterial() |
float |
getNormalSensitivity()
returns the normals sensitivity
form more details see setNormalSensitivity(float normalSensitivity) |
float |
getNormalThreshold()
returns the normal threshold
for more details see setNormalThreshold(float normalThreshold) |
protected void |
initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h) |
protected boolean |
isRequiresDepthTexture() |
protected void |
postQueue(com.jme3.renderer.queue.RenderQueue queue) |
void |
setDepthSensitivity(float depthSensitivity)
sets the depth sensitivity
defines how much depth will influence edges, default is 10 |
void |
setDepthThreshold(float depthThreshold)
sets the depth threshold
Defines at what threshold of difference of depth an edge is outlined default is 0.1f |
void |
setEdgeColor(com.jme3.math.ColorRGBA edgeColor)
Sets the edge color, default is black
|
void |
setEdgeIntensity(float edgeIntensity)
sets the edge intensity
Defines how visible the outlined edges will be |
void |
setEdgeWidth(float edgeWidth)
sets the width of the edge in pixels default is 1
|
void |
setNormalSensitivity(float normalSensitivity)
sets the normals sensitivity default is 1
|
void |
setNormalThreshold(float normalThreshold)
sets the normal threshold default is 0.5
|
cleanup, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, postFrame, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, writeprotected boolean isRequiresDepthTexture()
isRequiresDepthTexture in class com.jme3.post.Filterprotected void postQueue(com.jme3.renderer.queue.RenderQueue queue)
postQueue in class com.jme3.post.Filterprotected com.jme3.material.Material getMaterial()
getMaterial in class com.jme3.post.Filterprotected void initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h)
initFilter in class com.jme3.post.Filterprotected void cleanUpFilter(com.jme3.renderer.Renderer r)
cleanUpFilter in class com.jme3.post.Filterpublic float getDepthSensitivity()
setDepthSensitivity(float depthSensitivity)public void setDepthSensitivity(float depthSensitivity)
depthSensitivity - the desired sensitivity (default=10)public float getDepthThreshold()
setDepthThreshold(float depthThreshold)public void setDepthThreshold(float depthThreshold)
depthThreshold - the desired threshold (default=0.1)public float getEdgeIntensity()
setEdgeIntensity(float edgeIntensity)public void setEdgeIntensity(float edgeIntensity)
edgeIntensity - the desired intensity (default=1)public float getEdgeWidth()
public void setEdgeWidth(float edgeWidth)
edgeWidth - the desired width (in pixels, default=1)public float getNormalSensitivity()
setNormalSensitivity(float normalSensitivity)public void setNormalSensitivity(float normalSensitivity)
normalSensitivity - the desired sensitivity (default=1)public float getNormalThreshold()
setNormalThreshold(float normalThreshold)public void setNormalThreshold(float normalThreshold)
normalThreshold - the desired threshold (default=0.5)public com.jme3.math.ColorRGBA getEdgeColor()
public void setEdgeColor(com.jme3.math.ColorRGBA edgeColor)
edgeColor - the desired color (alias created, default=(0,0,0,1))