|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.state.RenderState
com.jme.scene.state.ShadeState
ShadeState maintains the interpolation of color between
vertices. Smooth shades the colors with proper linear interpolation, while
flat provides no smoothing.
| Field Summary | |
protected int |
shade
|
static int |
SM_FLAT
Pick the color of just one vertex of a triangle and rasterize all pixels of the triangle with this color. |
static int |
SM_SMOOTH
Smoothly interpolate the color values between the three colors of the three vertices. |
| Fields inherited from class com.jme.scene.state.RenderState |
RS_ALPHA, RS_ATTRIBUTE, RS_CULL, RS_DITHER, RS_FOG, RS_FRAGMENT_PROGRAM, RS_GLSL_SHADER_OBJECTS, RS_LIGHT, RS_MATERIAL, RS_MAX_STATE, RS_SHADE, RS_STENCIL, RS_TEXTURE, RS_VERTEX_PROGRAM, RS_WIREFRAME, RS_ZBUFFER |
| Constructor Summary | |
ShadeState()
Constructor instantiates a new ShadeState object with the
default mode being smooth. |
|
| Method Summary | |
int |
getShade()
getShade returns the current shading state. |
int |
getType()
getType returns this type of this render state. |
void |
setShade(int shade)
setShade sets the current shading state. |
| Methods inherited from class com.jme.scene.state.RenderState |
apply, extract, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SM_FLAT
public static final int SM_SMOOTH
protected int shade
| Constructor Detail |
public ShadeState()
ShadeState object with the
default mode being smooth.
| Method Detail |
public int getShade()
getShade returns the current shading state.
public void setShade(int shade)
setShade sets the current shading state. If an
invalid value is passed, the shade is set to SM_SMOOTH.
shade - the current shading state.public int getType()
getType returns this type of this render state.
(RS_SHADE).
getType in class RenderStateRenderState.getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||