com.jme3.post.filters
クラス PosterizationFilter

java.lang.Object
  上位を拡張 com.jme3.post.Filter
      上位を拡張 com.jme3.post.filters.PosterizationFilter
すべての実装されたインタフェース:
Savable

public class PosterizationFilter
extends Filter

A Post Processing filter to change colors appear with sharp edges as if the available amount of colors available was not enough to draw the true image. Possibly useful in cartoon styled games. Use the strength variable to lessen influence of this filter on the total result. Values from 0.2 to 0.7 appear to give nice results. Based on an article from Geeks3D: http://www.geeks3d.com/20091027/shader-library-posterization-post-processing-effect-glsl/


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
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
 
メソッドの概要
 float getGamma()
          Returns current gamma value
 int getNumColors()
          Returns number of color levels used
 float getStrength()
          Returns current strength value, i.e. influence on final image
 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 urrent strength value, i.e. influence on final image
 
クラス com.jme3.post.Filter から継承されたメソッド
getName, isEnabled, read, setEnabled, setName, write
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PosterizationFilter

public PosterizationFilter()
Creates a posterization Filter


PosterizationFilter

public PosterizationFilter(int numColors)
Creates a posterization Filter with the given number of colors

パラメータ:
numColors -

PosterizationFilter

public PosterizationFilter(int numColors,
                           float gamma)
Creates a posterization Filter with the given number of colors and gamma

パラメータ:
numColors -
gamma -
メソッドの詳細

setNumColors

public void setNumColors(int numColors)
Sets number of color levels used to draw the screen


setGamma

public void setGamma(float gamma)
Sets gamma level used to enhange visual quality


setStrength

public void setStrength(float strength)
Sets urrent strength value, i.e. influence on final image


getNumColors

public int getNumColors()
Returns number of color levels used


getGamma

public float getGamma()
Returns current gamma value


getStrength

public float getStrength()
Returns current strength value, i.e. influence on final image