Enum Material.Type
- All Implemented Interfaces:
Comparable<Material.Type>
- Enclosing class:
Material
The built in lighting model used to shade a surface.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDiffuse only (Lambert) lighting using a single directional light.Diffuse and specular (Blinn-Phong) lighting using a single directional light and theshininessproperty.Unlit shading sampling a background cube/sky texture, rendered behind all other geometry.Unlit shading intended for screen aligned sprites and billboards.Flat, unlit shading. -
Method Summary
Modifier and TypeMethodDescriptionstatic Material.TypeReturns the enum constant of this type with the specified name.static Material.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
UNLIT
Flat, unlit shading. The fragment color is the base color modulated by the texture and vertex color. Ideal for UI, sprites and emissive surfaces. -
LAMBERT
Diffuse only (Lambert) lighting using a single directional light. -
PHONG
Diffuse and specular (Blinn-Phong) lighting using a single directional light and theshininessproperty. -
SPRITE
Unlit shading intended for screen aligned sprites and billboards. -
SKYBOX
Unlit shading sampling a background cube/sky texture, rendered behind all other geometry.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-