Package com.google.android.filament
Enum Material.BlendingMode
- java.lang.Object
-
- java.lang.Enum<Material.BlendingMode>
-
- com.google.android.filament.Material.BlendingMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Material.BlendingMode>
- Enclosing class:
- Material
public static enum Material.BlendingMode extends java.lang.Enum<Material.BlendingMode>
Supported blending modes- See Also:
- Blending and transparency: blending
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDMaterial is additive (e.g.: hologram).FADEMaterial is transparent and color is alpha-pre-multiplied.MASKEDMaterial is masked (i.e.MULTIPLYMaterial darkens what's behind it.OPAQUEMaterial is opaque.SCREENMaterial brightens what's behind it.TRANSPARENTMaterial is transparent and color is alpha-pre-multiplied.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Material.BlendingModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Material.BlendingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPAQUE
public static final Material.BlendingMode OPAQUE
Material is opaque.
-
TRANSPARENT
public static final Material.BlendingMode TRANSPARENT
Material is transparent and color is alpha-pre-multiplied. Affects diffuse lighting only.
-
ADD
public static final Material.BlendingMode ADD
Material is additive (e.g.: hologram).
-
MASKED
public static final Material.BlendingMode MASKED
Material is masked (i.e. alpha tested).
-
FADE
public static final Material.BlendingMode FADE
Material is transparent and color is alpha-pre-multiplied. Affects specular lighting.
-
MULTIPLY
public static final Material.BlendingMode MULTIPLY
Material darkens what's behind it.
-
SCREEN
public static final Material.BlendingMode SCREEN
Material brightens what's behind it.
-
-
Method Detail
-
values
public static Material.BlendingMode[] 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 (Material.BlendingMode c : Material.BlendingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Material.BlendingMode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-