com.jme3.shadow
Enum PssmShadowRenderer.FilterMode

java.lang.Object
  extended by java.lang.Enum<PssmShadowRenderer.FilterMode>
      extended by com.jme3.shadow.PssmShadowRenderer.FilterMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PssmShadowRenderer.FilterMode>
Enclosing class:
PssmShadowRenderer

public static enum PssmShadowRenderer.FilterMode
extends java.lang.Enum<PssmShadowRenderer.FilterMode>

FilterMode specifies how shadows are filtered


Enum Constant Summary
Bilinear
          Bilinear filtering is used.
Dither
          Dither-based sampling is used, very cheap but can look bad at low resolutions.
Nearest
          Shadows are not filtered.
PCF4
          4x4 percentage-closer filtering is used.
PCF8
          8x8 percentage-closer filtering is used.
 
Method Summary
static PssmShadowRenderer.FilterMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PssmShadowRenderer.FilterMode[] 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

Nearest

public static final PssmShadowRenderer.FilterMode Nearest
Shadows are not filtered. Nearest sample is used, causing in blocky shadows.


Bilinear

public static final PssmShadowRenderer.FilterMode Bilinear
Bilinear filtering is used. Has the potential of being hardware accelerated on some GPUs


Dither

public static final PssmShadowRenderer.FilterMode Dither
Dither-based sampling is used, very cheap but can look bad at low resolutions.


PCF4

public static final PssmShadowRenderer.FilterMode PCF4
4x4 percentage-closer filtering is used. Shadows will be smoother at the cost of performance


PCF8

public static final PssmShadowRenderer.FilterMode PCF8
8x8 percentage-closer filtering is used. Shadows will be smoother at the cost of performance

Method Detail

values

public static PssmShadowRenderer.FilterMode[] 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 (PssmShadowRenderer.FilterMode c : PssmShadowRenderer.FilterMode.values())
    System.out.println(c);

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

valueOf

public static PssmShadowRenderer.FilterMode 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