lovr.graphics.setCullingEnabled

Enables or disables culling. Culling is an optimization that avoids rendering the back face of polygons. This improves performance by reducing the number of polygons drawn, but requires that the vertices in triangles are specified in a consistent clockwise or counter clockwise order.

lovr.graphics.setCullingEnabled(isEnabled)

Arguments

NameTypeDescription
isEnabledbooleanWhether or not culling should be enabled.

Returns

Nothing

Notes

Culling is disabled by default.

See also