|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RenderState.BlendMode>
com.jme3.material.RenderState.BlendMode
public static enum RenderState.BlendMode
BlendMode
specifies the blending operation to use.
RenderState.setBlendMode(com.jme3.material.RenderState.BlendMode)
Enum Constant Summary | |
---|---|
Additive
Additive blending. |
|
Alpha
Alpha blending, interpolates to source color from dest color using source alpha. |
|
AlphaAdditive
Additive blending that is multiplied with source alpha. |
|
Color
Color blending, blends in color from dest color using source color. |
|
Modulate
Multiplies the source and dest colors. |
|
ModulateX2
Multiplies the source and dest colors then doubles the result. |
|
Off
No blending mode is used. |
|
PremultAlpha
Premultiplied alpha blending, for use with premult alpha textures. |
Method Summary | |
---|---|
static RenderState.BlendMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RenderState.BlendMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RenderState.BlendMode Off
public static final RenderState.BlendMode Additive
Result = Source Color + Destination Color -> (GL_ONE, GL_ONE)
public static final RenderState.BlendMode PremultAlpha
Result = Source Color + (Dest Color * (1 - Source Alpha) ) -> (GL_ONE, GL_ONE_MINUS_SRC_ALPHA)
public static final RenderState.BlendMode AlphaAdditive
Result = (Source Alpha * Source Color) + Dest Color -> (GL_SRC_ALPHA, GL_ONE)
public static final RenderState.BlendMode Color
Result = Source Color + (1 - Source Color) * Dest Color -> (GL_ONE, GL_ONE_MINUS_SRC_COLOR)
public static final RenderState.BlendMode Alpha
Result = Source Alpha * Source Color + (1 - Source Alpha) * Dest Color -> (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
public static final RenderState.BlendMode Modulate
Result = Source Color * Dest Color -> (GL_DST_COLOR, GL_ZERO)
public static final RenderState.BlendMode ModulateX2
Result = 2 * Source Color * Dest Color -> (GL_DST_COLOR, GL_SRC_COLOR)
Method Detail |
---|
public static RenderState.BlendMode[] values()
for (RenderState.BlendMode c : RenderState.BlendMode.values()) System.out.println(c);
public static RenderState.BlendMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |