Enum Class RenderState.BlendFunc

java.lang.Object
java.lang.Enum<RenderState.BlendFunc>
com.jme3.material.RenderState.BlendFunc
All Implemented Interfaces:
Serializable, Comparable<RenderState.BlendFunc>, Constable
Enclosing class:
RenderState

public static enum RenderState.BlendFunc extends Enum<RenderState.BlendFunc>
BlendFunc defines the blending functions for use with BlendMode.Custom. Source color components are referred to as (R_s0, G_s0, B_s0, A_s0). Destination color components are referred to as (R_d, G_d, B_d, A_d).
  • Enum Constant Details

    • Zero

      public static final RenderState.BlendFunc Zero
      RGB Factor (0, 0, 0), Alpha Factor (0)
    • One

      public static final RenderState.BlendFunc One
      RGB Factor (1, 1, 1), Alpha Factor (1)
    • Src_Color

      public static final RenderState.BlendFunc Src_Color
      RGB Factor (R_s0, G_s0, B_s0), Alpha Factor (A_s0)
    • One_Minus_Src_Color

      public static final RenderState.BlendFunc One_Minus_Src_Color
      RGB Factor (1-R_s0, 1-G_s0, 1-B_s0), Alpha Factor (1-A_s0)
    • Dst_Color

      public static final RenderState.BlendFunc Dst_Color
      RGB Factor (R_d, G_d, B_d), Alpha Factor (A_d)
    • One_Minus_Dst_Color

      public static final RenderState.BlendFunc One_Minus_Dst_Color
      RGB Factor (1-R_d, 1-G_d, 1-B_d), Alpha Factor (1-A_d)
    • Src_Alpha

      public static final RenderState.BlendFunc Src_Alpha
      RGB Factor (A_s0, A_s0, A_s0), Alpha Factor (A_s0)
    • One_Minus_Src_Alpha

      public static final RenderState.BlendFunc One_Minus_Src_Alpha
      RGB Factor (1-A_s0, 1-A_s0, 1-A_s0), Alpha Factor (1-A_s0)
    • Dst_Alpha

      public static final RenderState.BlendFunc Dst_Alpha
      RGB Factor (A_d, A_d, A_d), Alpha Factor (A_d)
    • One_Minus_Dst_Alpha

      public static final RenderState.BlendFunc One_Minus_Dst_Alpha
      RGB Factor (1-A_d, 1-A_d, 1-A_d), Alpha Factor (1-A_d)
    • Src_Alpha_Saturate

      public static final RenderState.BlendFunc Src_Alpha_Saturate
      RGB Factor (i, i, i), Alpha Factor (1)
  • Method Details

    • values

      public static RenderState.BlendFunc[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RenderState.BlendFunc valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null