FilterMode.lua 497 B

12345678910111213141516171819
  1. return {
  2. summary = 'Different ways to smooth textures.',
  3. description = 'Controls how `Sampler` objects smooth pixels in textures.',
  4. values = {
  5. {
  6. name = 'nearest',
  7. description = 'A pixelated appearance where the "nearest neighbor" pixel is used.'
  8. },
  9. {
  10. name = 'linear',
  11. description = 'A smooth appearance where neighboring pixels are averaged.'
  12. }
  13. },
  14. related = {
  15. 'lovr.graphics.newSampler',
  16. 'Sampler:getFilter',
  17. 'Texture:setPixels'
  18. }
  19. }