render-to-depth-texture.lua 156 B

12345
  1. function lovr.load()
  2. t = lovr.graphics.newTexture(100, 100, { format = 'd32f' })
  3. p = lovr.graphics.newPass({ depth = t })
  4. lovr.graphics.submit(p)
  5. end