Package com.jme3.texture
Enum Class Texture.ShadowCompareMode
- All Implemented Interfaces:
Serializable
,Comparable<Texture.ShadowCompareMode>
,Constable
- Enclosing class:
- Texture
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 ConstantDescriptionCompares 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 TypeMethodDescriptionstatic Texture.ShadowCompareMode
Returns the enum constant of this class with the specified name.static Texture.ShadowCompareMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Off
Shadow comparison mode is disabled. Texturing is done normally. -
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
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
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
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 nameNullPointerException
- if the argument is null
-