Sampler:getAnisotropy

Returns the anisotropy level of the Sampler. Anisotropy smooths out a texture's appearance when viewed at grazing angles.

anisotropy = Sampler:getAnisotropy()

Arguments

None

Returns

NameTypeDescription
anisotropynumber The anisotropy level of the sampler.

Notes

Not all GPUs support anisotropy. The maximum anisotropy level is given by the anisotropy limit of lovr.graphics.getLimits, which may be zero. It's very common for the maximum to be 16, however.

See also