Type:TextureFilterMode: Difference between revisions

From Resonite Wiki
Created page
 
m Table, more info, categories, the usual
Line 1: Line 1:
TextureFilterMode is a [[:Category:Type|data type]] used by Texture components. It determines the [[Wikipedia:Texture filtering|method of filtering]] done between the pixels of a texture.
'''TextureFilterMode''' is an [[Enum]] used by Texture components. It determines the [[Wikipedia:Texture filtering|method of filtering]] done on the texture's pixels when it magnified or minified when viewed.


TextureFilterMode has 4 values.
{{Table EnumValues
|Point|0|Uses point sampling, also known as "Nearest Neighbor". This is generally used for pixel art as it provides a "blocky" aesthetic.
|Bilinear|1|Bilinear filtering between pixels, but only on a single mip map.
|Trilinear|2|Trilinear filtering between pixels and the two nearest mip maps.
|Anisotropic|3|Anisotropic filtering is used. The anisotropic level is controlled by a different field on the texture component.
}}


* Point
[[Category:Enums]]
* Bilinear
[[Category:Types]]
* Trilinear
* Anisotropic

Revision as of 15:15, 7 March 2024

TextureFilterMode is an Enum used by Texture components. It determines the method of filtering done on the texture's pixels when it magnified or minified when viewed.

Values
Name Value Description
Point 0 Uses point sampling, also known as "Nearest Neighbor". This is generally used for pixel art as it provides a "blocky" aesthetic.
Bilinear 1 Bilinear filtering between pixels, but only on a single mip map.
Trilinear 2 Trilinear filtering between pixels and the two nearest mip maps.
Anisotropic 3 Anisotropic filtering is used. The anisotropic level is controlled by a different field on the texture component.