com.jme3.texture
Enum Texture.ShadowCompareMode

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

public static enum Texture.ShadowCompareMode
extends java.lang.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.


Enum Constant Summary
GreaterOrEqual
          Compares the 3rd texture coordinate R to the value in this depth texture.
LessOrEqual
          Compares the 3rd texture coordinate R to the value in this depth texture.
Off
          Shadow comparison mode is disabled.
 
Method Summary
static Texture.ShadowCompareMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Texture.ShadowCompareMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

values

public static Texture.ShadowCompareMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Texture.ShadowCompareMode c : Texture.ShadowCompareMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

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