public static enum Renderer.Shading extends java.lang.Enum<Renderer.Shading>
Enum Constant and Description |
---|
FLAT
Flat shading, whereby a single normal is used for each
primitive
|
METAL
Variation on smooth shading, intended for metallic surfaces.
|
NONE
No shading.
|
SMOOTH
Smoothing shading, where normal information is interpolated
across the primitive.
|
Modifier and Type | Method and Description |
---|---|
static Renderer.Shading |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Renderer.Shading[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Renderer.Shading FLAT
public static final Renderer.Shading SMOOTH
public static final Renderer.Shading METAL
public static final Renderer.Shading NONE
public static Renderer.Shading[] values()
for (Renderer.Shading c : Renderer.Shading.values()) System.out.println(c);
public static Renderer.Shading valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null