Enum Class RenderState.BlendEquationAlpha

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

public static enum RenderState.BlendEquationAlpha extends Enum<RenderState.BlendEquationAlpha>
BlendEquationAlpha specifies the blending equation to combine pixels for the alpha component.
  • Enum Constant Details

    • InheritColor

      public static final RenderState.BlendEquationAlpha InheritColor
      Sets the blend equation to be the same as the one defined by RenderState.blendEquation.
    • Add

      public static final RenderState.BlendEquationAlpha Add
      Sets the blend equation so that the source and destination data are added. (Default) Clamps to [0,1] Useful for things like antialiasing and transparency.
    • Subtract

      public static final RenderState.BlendEquationAlpha Subtract
      Sets the blend equation so that the source and destination data are subtracted (Src - Dest). Clamps to [0,1] Falls back to Add if supportsSubtract is false.
    • ReverseSubtract

      public static final RenderState.BlendEquationAlpha ReverseSubtract
      Same as Subtract, but the order is reversed (Dst - Src). Clamps to [0,1] Falls back to Add if supportsSubtract is false.
    • Min

      public static final RenderState.BlendEquationAlpha Min
      Sets the blend equation so that the result alpha is the minimum of the source alpha and destination alpha. This and Max are useful for applications that analyze image data (image thresholding against a constant color, for example). Falls back to Add if supportsMinMax is false.
    • Max

      public static final RenderState.BlendEquationAlpha Max
      sSets the blend equation so that the result alpha is the maximum of the source alpha and destination alpha. This and Min are useful for applications that analyze image data (image thresholding against a constant color, for example). Falls back to Add if supportsMinMax is false.
  • Method Details

    • values

      public static RenderState.BlendEquationAlpha[] 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.BlendEquationAlpha 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