Sampler:getAnisotropy
EditReturns the anisotropy level of the Sampler. Anisotropy smooths out a texture's appearance when viewed at grazing angles.
anisotropy = Sampler:getAnisotropy()
Arguments
None
Returns
Name | Type | Description |
anisotropy | number | 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.