Enum Class Texture.ShadowCompareMode

java.lang.Object
java.lang.Enum<Texture.ShadowCompareMode>
com.jme3.texture.Texture.ShadowCompareMode
All Implemented Interfaces:
Serializable, Comparable<Texture.ShadowCompareMode>, Constable
Enclosing class:
Texture

public static enum Texture.ShadowCompareMode extends Enum<Texture.ShadowCompareMode>
If this texture is a depth texture (the format is Depth*) then this value may be used to compare the texture depth to the R texture coordinate.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Compares the 3rd texture coordinate R to the value in this depth texture. If R >= texture value then result is 1.0, otherwise, result is 0.0. If filtering is set to bilinear or trilinear the implementation may sample the texture multiple times to provide smoother results in the range [0, 1].
    Compares the 3rd texture coordinate R to the value in this depth texture. If R <= texture value then result is 1.0, otherwise, result is 0.0. If filtering is set to bilinear or trilinear the implementation may sample the texture multiple times to provide smoother results in the range [0, 1].
    Shadow comparison mode is disabled.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Off

      public static final Texture.ShadowCompareMode Off
      Shadow comparison mode is disabled. Texturing is done normally.
    • LessOrEqual

      public static final Texture.ShadowCompareMode LessOrEqual
      Compares the 3rd texture coordinate R to the value in this depth texture. If R <= texture value then result is 1.0, otherwise, result is 0.0. If filtering is set to bilinear or trilinear the implementation may sample the texture multiple times to provide smoother results in the range [0, 1].
    • GreaterOrEqual

      public static final Texture.ShadowCompareMode GreaterOrEqual
      Compares the 3rd texture coordinate R to the value in this depth texture. If R >= texture value then result is 1.0, otherwise, result is 0.0. If filtering is set to bilinear or trilinear the implementation may sample the texture multiple times to provide smoother results in the range [0, 1].
  • Method Details

    • values

      public static Texture.ShadowCompareMode[] 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 Texture.ShadowCompareMode 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