Pass:setDepthTest
EditSets the depth test.
Arguments
Name | Type | Description |
test | CompareMode | The new depth test to use. |
Returns
Nothing
Disable the depth test.
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
Pass:setDepthWrite
Pass:setDepthOffset
Pass:setDepthClamp
Pass:setStencilTest
Pass