Package com.jme3.texture
Enum Class Texture.MinFilter
- All Implemented Interfaces:
Serializable
,Comparable<Texture.MinFilter>
,Constable
- Enclosing class:
- Texture
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSame as BilinearNoMipMaps except that instead of using samples from texture level 0, the closest mipmap level is chosen based on distance.In this method the four nearest texels to the pixel center are sampled (at texture level 0), and their colors are combined by weighted averages.Similar to NearestNeighborNoMipMaps except that instead of using samples from texture level 0, a sample is chosen from each of the closest (by distance) two mipmap levels.Same as NearestNeighborNoMipMaps except that instead of using samples from texture level 0, the closest mipmap level is chosen based on distance.Nearest neighbor interpolation is the fastest and crudest filtering method - it simply uses the color of the texel closest to the pixel center for the pixel color.Trilinear filtering is a remedy to a common artifact seen in mipmapped bilinearly filtered images: an abrupt and very noticeable change in quality at boundaries where the renderer switches from one mipmap level to the next. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Texture.MinFilter
Returns the enum constant of this class with the specified name.static Texture.MinFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NearestNoMipMaps
Nearest neighbor interpolation is the fastest and crudest filtering method - it simply uses the color of the texel closest to the pixel center for the pixel color. While fast, this results in aliasing and shimmering during minification. (GL equivalent: GL_NEAREST) -
BilinearNoMipMaps
In this method the four nearest texels to the pixel center are sampled (at texture level 0), and their colors are combined by weighted averages. Though smoother, without mipmaps it suffers the same aliasing and shimmering problems as nearest NearestNeighborNoMipMaps. (GL equivalent: GL_LINEAR) -
NearestNearestMipMap
Same as NearestNeighborNoMipMaps except that instead of using samples from texture level 0, the closest mipmap level is chosen based on distance. This reduces the aliasing and shimmering significantly, but does not help with blockiness. (GL equivalent: GL_NEAREST_MIPMAP_NEAREST) -
BilinearNearestMipMap
Same as BilinearNoMipMaps except that instead of using samples from texture level 0, the closest mipmap level is chosen based on distance. By using mipmapping we avoid the aliasing and shimmering problems of BilinearNoMipMaps. (GL equivalent: GL_LINEAR_MIPMAP_NEAREST) -
NearestLinearMipMap
Similar to NearestNeighborNoMipMaps except that instead of using samples from texture level 0, a sample is chosen from each of the closest (by distance) two mipmap levels. A weighted average of these two samples is returned. (GL equivalent: GL_NEAREST_MIPMAP_LINEAR) -
Trilinear
Trilinear filtering is a remedy to a common artifact seen in mipmapped bilinearly filtered images: an abrupt and very noticeable change in quality at boundaries where the renderer switches from one mipmap level to the next. Trilinear filtering solves this by doing a texture lookup and bilinear filtering on the two closest mipmap levels (one higher and one lower quality), and then linearly interpolating the results. This results in a smooth degradation of texture quality as distance from the viewer increases, rather than a series of sudden drops. Of course, closer than Level 0 there is only one mipmap level available, and the algorithm reverts to bilinear filtering (GL equivalent: GL_LINEAR_MIPMAP_LINEAR)
-
-
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
-
usesMipMapLevels
public boolean usesMipMapLevels()
-