Enum TextureUnit.LayerBlendOperationEx
- java.lang.Object
-
- java.lang.Enum<TextureUnit.LayerBlendOperationEx>
-
- be.yildizgames.module.graphic.material.TextureUnit.LayerBlendOperationEx
-
- All Implemented Interfaces:
Serializable,Comparable<TextureUnit.LayerBlendOperationEx>
- Enclosing class:
- TextureUnit
public static enum TextureUnit.LayerBlendOperationEx extends Enum<TextureUnit.LayerBlendOperationEx>
Possible layer blend operations.- Author:
- Van den Borre Grégory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDAdd source1 and source2 together.ADD_SIGNEDAs ADD, but subtract 0.5 from the result.ADD_SMOOTHAs ADD, but subtract product from the sum.BLEND_CURRENT_ALPHAAs BLEND_DIFFUSE_ALPHA, but use current alpha from previous stages.BLEND_DIFFUSE_ALPHAUse interpolated alpha value from vertices to scale source1, then add source2 scaled by (1-alpha).BLEND_DIFFUSE_COLOURuse interpolated color values from vertices to scale source1, then add source2 scaled by (1-color).BLEND_MANUALAs BLEND_DIFFUSE_ALPHA but use a constant manual blend value (0.0-1.0).BLEND_TEXTURE_ALPHAAs BLEND_DIFFUSE_ALPHA, but use alpha from texture.DOTPRODUCTDot product of color1 and color2.MODULATEMultiply source1 and source2 together.MODULATE_X2As MODULATE but brighten afterwards (x2).MODULATE_X4As MODULATE but brighten more afterwards (x4).SOURCE1Use source1 without modification.SOURCE2Use source2 without modification.SUBTRACTSubtract source2 from source1.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextureUnit.LayerBlendOperationExvalueOf(String name)Returns the enum constant of this type with the specified name.static TextureUnit.LayerBlendOperationEx[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOURCE1
public static final TextureUnit.LayerBlendOperationEx SOURCE1
Use source1 without modification.
-
SOURCE2
public static final TextureUnit.LayerBlendOperationEx SOURCE2
Use source2 without modification.
-
MODULATE
public static final TextureUnit.LayerBlendOperationEx MODULATE
Multiply source1 and source2 together.
-
MODULATE_X2
public static final TextureUnit.LayerBlendOperationEx MODULATE_X2
As MODULATE but brighten afterwards (x2).
-
MODULATE_X4
public static final TextureUnit.LayerBlendOperationEx MODULATE_X4
As MODULATE but brighten more afterwards (x4).
-
ADD
public static final TextureUnit.LayerBlendOperationEx ADD
Add source1 and source2 together.
-
ADD_SIGNED
public static final TextureUnit.LayerBlendOperationEx ADD_SIGNED
As ADD, but subtract 0.5 from the result.
-
ADD_SMOOTH
public static final TextureUnit.LayerBlendOperationEx ADD_SMOOTH
As ADD, but subtract product from the sum.
-
SUBTRACT
public static final TextureUnit.LayerBlendOperationEx SUBTRACT
Subtract source2 from source1.
-
BLEND_DIFFUSE_ALPHA
public static final TextureUnit.LayerBlendOperationEx BLEND_DIFFUSE_ALPHA
Use interpolated alpha value from vertices to scale source1, then add source2 scaled by (1-alpha).
-
BLEND_TEXTURE_ALPHA
public static final TextureUnit.LayerBlendOperationEx BLEND_TEXTURE_ALPHA
As BLEND_DIFFUSE_ALPHA, but use alpha from texture.
-
BLEND_CURRENT_ALPHA
public static final TextureUnit.LayerBlendOperationEx BLEND_CURRENT_ALPHA
As BLEND_DIFFUSE_ALPHA, but use current alpha from previous stages.
-
BLEND_MANUAL
public static final TextureUnit.LayerBlendOperationEx BLEND_MANUAL
As BLEND_DIFFUSE_ALPHA but use a constant manual blend value (0.0-1.0).
-
DOTPRODUCT
public static final TextureUnit.LayerBlendOperationEx DOTPRODUCT
Dot product of color1 and color2.
-
BLEND_DIFFUSE_COLOUR
public static final TextureUnit.LayerBlendOperationEx BLEND_DIFFUSE_COLOUR
use interpolated color values from vertices to scale source1, then add source2 scaled by (1-color).
-
-
Method Detail
-
values
public static TextureUnit.LayerBlendOperationEx[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextureUnit.LayerBlendOperationEx c : TextureUnit.LayerBlendOperationEx.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextureUnit.LayerBlendOperationEx valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-