setCullingEnabled.lua 618 B

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