lovr.graphics.getWinding

Returns the current 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.

winding = lovr.graphics.getWinding()

Arguments

None

Returns

NameTypeDescription
windingWindingThe current winding direction.

Notes

Culling is initially disabled and must be enabled using lovr.graphics.setCullingEnabled.

The default winding direction is counterclockwise.

See also