Pass:setDepthTest

Sets the depth test.


Pass:setDepthTest(test)

Arguments

NameTypeDescription
testCompareMode The new depth test to use.

Returns

Nothing


Disable the depth test.

Pass:setDepthTest()

Arguments

None

Returns

Nothing

Notes

When using LÖVR's default projection (reverse Z with infinite far plane) the default depth test is gequal, depth values of 0.0 are on the far plane and depth values of 1.0 are on the near plane, closer to the camera.

A depth buffer must be present to use the depth test, but this is enabled by default.

See also