public enum Material.Type
- Object
- Enum<Material.Type>
- Material.Type
ImplementsComparable<Material.Type>
The built in lighting model used to shade a surface.
Enum constants
UNLIT | Flat, unlit shading. |
LAMBERT | Diffuse only (Lambert) lighting using a single directional light. |
PHONG | Diffuse and specular (Blinn-Phong) lighting using a single directional light and the shininess property. |
SPRITE | Unlit shading intended for screen aligned sprites and billboards. |
SKYBOX | Unlit shading sampling a background cube/sky texture, rendered behind all other geometry. |
Methods
public static Material.Type[] values() | |
public static Material.Type valueOf(String name) |
Inherited methods
Enum constant details
UNLIT
UNLITFlat, unlit shading. The fragment color is the base color modulated
by the texture and vertex color. Ideal for UI, sprites and emissive
surfaces.
LAMBERT
LAMBERTDiffuse only (Lambert) lighting using a single directional light.
PHONG
PHONGDiffuse and specular (Blinn-Phong) lighting using a single
directional light and the
shininess property.SPRITE
SPRITEUnlit shading intended for screen aligned sprites and billboards.
SKYBOX
SKYBOXUnlit shading sampling a background cube/sky texture, rendered behind
all other geometry.
Method details
values
public static Material.Type[] values()valueOf
public static Material.Type valueOf(String name)