Enum Class ShadingState.ShadingMode

java.lang.Object
java.lang.Enum<ShadingState.ShadingMode>
com.ardor3d.renderer.state.ShadingState.ShadingMode
All Implemented Interfaces:
Serializable, Comparable<ShadingState.ShadingMode>, Constable
Enclosing class:
ShadingState

public static enum ShadingState.ShadingMode extends Enum<ShadingState.ShadingMode>
  • Enum Constant Details

    • Flat

      public static final ShadingState.ShadingMode Flat
      Pick the color of just one vertex of a triangle and rasterize all pixels of the triangle with this color.
    • Smooth

      public static final ShadingState.ShadingMode Smooth
      Smoothly interpolate the color values between the three colors of the three vertices. (Default)
  • Method Details

    • values

      public static ShadingState.ShadingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ShadingState.ShadingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null