FilterMode.lua 781 B

12345678910111213141516171819202122232425262728
  1. return {
  2. summary = 'How textures are sampled.',
  3. description = [[
  4. The method used to downsample (or upsample) a texture. "nearest" can be used for a pixelated
  5. effect, whereas "linear" leads to more smooth results. Nearest is slightly faster than linear.
  6. ]],
  7. values = {
  8. {
  9. name = 'nearest',
  10. description = 'Fast nearest-neighbor sampling. Leads to a pixelated style.'
  11. },
  12. {
  13. name = 'bilinear',
  14. description = 'Smooth pixel sampling.'
  15. },
  16. {
  17. name = 'trilinear',
  18. description = 'Smooth pixel sampling, with smooth sampling across mipmap levels.'
  19. }
  20. },
  21. related = {
  22. 'Texture:getFilter',
  23. 'Texture:setFilter',
  24. 'lovr.graphics.getDefaultFilter',
  25. 'lovr.graphics.setDefaultFilter',
  26. 'WrapMode'
  27. }
  28. }