core.texture.texture_filter

Client

Enumeration of sampling filters that can be applied to an individual texture, overriding whatever draws it


Values

Constants are ordered from the shared default through crisp (nearest) to smooth (linear) sampling.

ConstantDescription
core.texture.texture_filter.DEFAULTNo per-texture override — inherits whatever filter the drawing call defaults to
core.texture.texture_filter.NEARESTPoint sampling — crisp, blocky edges, no blur at non-integer scales; ideal for pixel art
core.texture.texture_filter.NEAREST_MIPMAPNearest sampling with mipmaps
Requires the source to have mip levels —
generate via core.texture.create's mipmaps parameter
core.texture.texture_filter.NEAREST_MIPMAP_ANISOTROPICNearest sampling with anisotropic mipmaps
Requires the source to have mip levels —
generate via core.texture.create's mipmaps parameter
core.texture.texture_filter.LINEARBilinear sampling — smooth, blurred edges at non-integer scales; the effective default before any override is set
core.texture.texture_filter.LINEAR_MIPMAPLinear sampling with mipmaps
Requires the source to have mip levels —
generate via core.texture.create's mipmaps parameter
core.texture.texture_filter.LINEAR_MIPMAP_ANISOTROPICLinear sampling with anisotropic mipmaps
Requires the source to have mip levels —
generate via core.texture.create's mipmaps parameter

On this page