lovr.graphics.setWinding
Sets the polygon winding. The winding direction determines which face of a triangle is the front face and which is the back face. This lets the graphics engine cull the back faces of polygons, improving performance. The default is counterclockwise.
lovr.graphics.setWinding(winding)
Arguments
Name | Type | Description |
winding | Winding | The new winding direction. |
Returns
Nothing
Notes
Culling is initially disabled and must be enabled using lovr.graphics.setCullingEnabled
.
The default winding direction is counterclockwise.
See also
lovr.graphics.setCullingEnabled
lovr.graphics.isCullingEnabled
lovr.graphics.getWinding
lovr.graphics