natiny.render.cover

Lua
natiny.render.cover()

A rectangle covering the current render target. Its UV coordinates run from 0 to 1 across the target.

Example

Lua
natiny.render.cover()

Notes

  • Unlike natiny.render.clear, this is geometry and therefore uses the current material, draw color, blending and depth state.
  • Vertex positions use target pixel coordinates; each vertex normal is (0, 0, 1).