Enum Class FogState.DensityFunction

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

public static enum FogState.DensityFunction extends Enum<FogState.DensityFunction>
  • Enum Constant Details

    • Linear

      public static final FogState.DensityFunction Linear
      The fog blending function defined as: (end - z) / (end - start).
    • Exponential

      public static final FogState.DensityFunction Exponential
      The fog blending function defined as: e^-(density*z)
    • ExponentialSquared

      public static final FogState.DensityFunction ExponentialSquared
      The fog blending function defined as: e^((-density*z)^2)
  • Method Details

    • values

      public static FogState.DensityFunction[] 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 FogState.DensityFunction 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