lovr.graphics.discard

Discards pixel information in the active Canvas or display. This is mostly used as an optimization hint for the GPU, and is usually most helpful on mobile devices.

lovr.graphics.discard(color, depth, stencil)

Arguments

NameTypeDefaultDescription
colorbooleantrueWhether or not to discard color information.
depthbooleantrueWhether or not to discard depth information.
stencilbooleantrueWhether or not to discard stencil information.

Returns

Nothing

See also