Package com.google.android.filament
Enum Material.Shading
- java.lang.Object
-
- java.lang.Enum<Material.Shading>
-
- com.google.android.filament.Material.Shading
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Material.Shading>
- Enclosing class:
- Material
public static enum Material.Shading extends java.lang.Enum<Material.Shading>
Supported shading models
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOTHCloth lighting modelLITDefault, standard lightingSPECULAR_GLOSSINESSLegacy lighting modelSUBSURFACESubsurface lighting modelUNLITNo lighting applied, emissive possible
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Material.ShadingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Material.Shading[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNLIT
public static final Material.Shading UNLIT
No lighting applied, emissive possible- See Also:
- Unlit model
-
LIT
public static final Material.Shading LIT
Default, standard lighting- See Also:
- Lit model
-
SUBSURFACE
public static final Material.Shading SUBSURFACE
Subsurface lighting model- See Also:
- Subsurface model
-
CLOTH
public static final Material.Shading CLOTH
Cloth lighting model- See Also:
- Cloth model
-
SPECULAR_GLOSSINESS
public static final Material.Shading SPECULAR_GLOSSINESS
Legacy lighting model- See Also:
- Specular glossiness
-
-
Method Detail
-
values
public static Material.Shading[] 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.Shading c : Material.Shading.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.Shading 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
-
-