lovr.graphics.getDepthTest

Returns the current depth test settings.

compareMode, write = lovr.graphics.getDepthTest()

Arguments

None

Returns

NameTypeDescription
compareModeCompareModeThe current comparison method for depth testing.
writebooleanWhether pixels will have their z value updated when rendered to.

Notes

The depth test is an advanced technique to control how 3D objects overlap each other when they are rendered. It works as follows:

Smaller z values are closer to the camera.

The default compare mode is lequal, which usually gives good results for normal 3D rendering.

See also