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

NameTypeDescription
windingWindingThe 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