getAnisotropy.lua 810 B

12345678910111213141516171819202122232425262728293031
  1. return {
  2. summary = 'Get the anisotropy level of the Sampler.',
  3. description = [[
  4. Returns the anisotropy level of the Sampler. Anisotropy smooths out a texture's appearance when
  5. viewed at grazing angles.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. anisotropy = {
  10. type = 'number',
  11. description = 'The anisotropy level of the sampler.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'anisotropy' }
  18. }
  19. },
  20. notes = [[
  21. Not all GPUs support anisotropy. The maximum anisotropy level is given by the `anisotropy`
  22. limit of `lovr.graphics.getLimits`, which may be zero. It's very common for the maximum to be
  23. 16, however.
  24. ]],
  25. related = {
  26. 'Sampler:getFilter',
  27. 'Sampler:getWrap',
  28. 'Sampler:getCompareMode',
  29. 'Sampler:getMipmapRange'
  30. }
  31. }