isCullingEnabled.lua 633 B

12345678910111213141516171819
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Get whether backface culling is enabled.',
  4. description = [[
  5. Returns whether or not culling is active. Culling is an optimization that avoids rendering the
  6. back face of polygons. This improves performance by reducing the number of polygons drawn, but
  7. requires that the vertices in triangles are specified in a consistent clockwise or counter
  8. clockwise order.
  9. ]],
  10. arguments = {},
  11. returns = {
  12. {
  13. name = 'isEnabled',
  14. type = 'boolean',
  15. description = 'Whether or not culling is enabled.'
  16. }
  17. },
  18. notes = 'Culling is disabled by default.'
  19. }