identity.lua 392 B

123456789101112131415161718
  1. return {
  2. summary = 'Reset the matrix to the identity.',
  3. description = [[
  4. Resets the matrix to the identity, effectively setting its translation to zero, its scale to 1,
  5. and clearing any rotation.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'm',
  11. type = 'Mat4',
  12. description = 'The original matrix.'
  13. }
  14. },
  15. related = {
  16. 'lovr.graphics.origin'
  17. }
  18. }