Enum Class EdgeFilteringMode

java.lang.Object
java.lang.Enum<EdgeFilteringMode>
com.jme3.shadow.EdgeFilteringMode
All Implemented Interfaces:
Serializable, Comparable<EdgeFilteringMode>, Constable

public enum EdgeFilteringMode extends Enum<EdgeFilteringMode>
ShadowEdgeFiltering specifies how shadows are filtered
  • Enum Constant Details

    • Nearest

      public static final EdgeFilteringMode Nearest
      Shadows are not filtered. Nearest sample is used, causing in blocky shadows.
    • Bilinear

      public static final EdgeFilteringMode Bilinear
      Bilinear filtering is used. Has the potential of being hardware accelerated on some GPUs
    • Dither

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

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

      public static final EdgeFilteringMode PCFPOISSON
      12 samples percentage-closer filtering with a POISON disc distribution is used. http://devmag.org.za/2009/05/03/poisson-disk-sampling/ The principle is to eliminate the regular blurring pattern that can be seen with pcf4x4 by randomizing the sample position with a poisson disc. Shadows will look smoother than 4x4 PCF but with slightly better or similar performance.
    • PCF8

      public static final EdgeFilteringMode PCF8
      8x8 percentage-closer filtering is used. Shadows will be smoother at the cost of performance
  • Method Details

    • values

      public static EdgeFilteringMode[] 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 EdgeFilteringMode 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
    • getMaterialParamValue

      public int getMaterialParamValue()