com.jme3.material
列挙型 RenderState.BlendMode

java.lang.Object
  上位を拡張 java.lang.Enum<RenderState.BlendMode>
      上位を拡張 com.jme3.material.RenderState.BlendMode
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<RenderState.BlendMode>
含まれているクラス:
RenderState

public static enum RenderState.BlendMode
extends java.lang.Enum<RenderState.BlendMode>

BlendMode specifies the blending operation to use.

関連項目:
RenderState.setBlendMode(com.jme3.material.RenderState.BlendMode)

列挙型定数の概要
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.
 
メソッドの概要
static RenderState.BlendMode valueOf(java.lang.String name)
          指定した名前を持つこの型の列挙型定数を返します。
static RenderState.BlendMode[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

Off

public static final RenderState.BlendMode Off
No blending mode is used.


Additive

public static final RenderState.BlendMode Additive
Additive blending. For use with glows and particle emitters.

Result = Source Color + Destination Color


PremultAlpha

public static final RenderState.BlendMode PremultAlpha
Premultiplied alpha blending, for use with premult alpha textures.

Result = Source Color + (Dest Color * (1 - Source Alpha) )


AlphaAdditive

public static final RenderState.BlendMode AlphaAdditive
Additive blending that is multiplied with source alpha. For use with glows and particle emitters.

Result = (Source Alpha * Source Color) + Dest Color


Color

public static final RenderState.BlendMode Color
Color blending, blends in color from dest color using source color.

Result = Source Color + (1 - Source Color) * Dest Color


Alpha

public static final RenderState.BlendMode Alpha
Alpha blending, interpolates to source color from dest color using source alpha.

Result = Source Alpha * Source Color + (1 - Source Alpha) * Dest Color


Modulate

public static final RenderState.BlendMode Modulate
Multiplies the source and dest colors.

Result = Source Color * Dest Color


ModulateX2

public static final RenderState.BlendMode ModulateX2
Multiplies the source and dest colors then doubles the result.

Result = 2 * Source Color * Dest Color

メソッドの詳細

values

public static RenderState.BlendMode[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for (RenderState.BlendMode c : RenderState.BlendMode.values())
    System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static RenderState.BlendMode valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
java.lang.IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合
java.lang.NullPointerException - 引数が null の場合