init.lua 388 B

123456789
  1. return {
  2. summary = 'An image that can be applied to Materials.',
  3. description = [[
  4. A Texture is an image that can be applied to `Material`s. The supported file formats are
  5. `.png`, `.jpg`, `.hdr`, `.dds`, `.ktx`, and `.astc`. DDS and ASTC are compressed formats, which
  6. are recommended because they're smaller and faster.
  7. ]],
  8. constructor = 'lovr.graphics.newTexture'
  9. }