public class PosterizationFilter
extends com.jme3.post.Filter
| Constructor and Description |
|---|
PosterizationFilter()
Creates a posterization Filter
|
PosterizationFilter(int numColors)
Creates a posterization Filter with the given number of colors
|
PosterizationFilter(int numColors,
float gamma)
Creates a posterization Filter with the given number of colors and gamma
|
| Modifier and Type | Method and Description |
|---|---|
float |
getGamma()
Returns current gamma value
|
protected com.jme3.material.Material |
getMaterial() |
int |
getNumColors()
Returns number of color levels used
|
float |
getStrength()
Returns current strength value, i.e.
|
protected void |
initFilter(com.jme3.asset.AssetManager manager,
com.jme3.renderer.RenderManager renderManager,
com.jme3.renderer.ViewPort vp,
int w,
int h) |
void |
setGamma(float gamma)
Sets gamma level used to enhange visual quality
|
void |
setNumColors(int numColors)
Sets number of color levels used to draw the screen
|
void |
setStrength(float strength)
Sets current strength value, i.e.
|
cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, read, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer, writepublic PosterizationFilter()
public PosterizationFilter(int numColors)
numColors - public PosterizationFilter(int numColors,
float gamma)
numColors - gamma - protected 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 com.jme3.material.Material getMaterial()
getMaterial in class com.jme3.post.Filterpublic void setNumColors(int numColors)
public void setGamma(float gamma)
public void setStrength(float strength)
public int getNumColors()
public float getGamma()
public float getStrength()