main.lua 301 B

12345678910111213
  1. local icosphere = require 'icosphere'
  2. local mesh
  3. function lovr.load()
  4. local vertices, indices = icosphere(2)
  5. mesh = lovr.graphics.newMesh(vertices)
  6. mesh:setIndices(indices)
  7. end
  8. function lovr.draw(pass)
  9. pass:setWireframe(true)
  10. pass:draw(mesh, 0, 1.7, -1, .3, lovr.timer.getTime() * .3)
  11. end