Package com.jme3.shadow
Enum Class EdgeFilteringMode
- All Implemented Interfaces:
Serializable
,Comparable<EdgeFilteringMode>
,Constable
ShadowEdgeFiltering
specifies how shadows are filtered-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBilinear filtering is used.Dither-based sampling is used, very cheap but can look bad at low resolutions.Shadows are not filtered.4x4 percentage-closer filtering is used.8x8 percentage-closer filtering is used.12 samples percentage-closer filtering with a POISON disc distribution is used. -
Method Summary
Modifier and TypeMethodDescriptionint
static EdgeFilteringMode
Returns the enum constant of this class with the specified name.static EdgeFilteringMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Nearest
Shadows are not filtered. Nearest sample is used, causing in blocky shadows. -
Bilinear
Bilinear filtering is used. Has the potential of being hardware accelerated on some GPUs -
Dither
Dither-based sampling is used, very cheap but can look bad at low resolutions. -
PCF4
4x4 percentage-closer filtering is used. Shadows will be smoother at the cost of performance -
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
8x8 percentage-closer filtering is used. Shadows will be smoother at the cost of performance
-
-
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
-
getMaterialParamValue
public int getMaterialParamValue()
-