lovr.headset.getClipDistance

Returns the near and far clipping planes used to render to the headset. Objects closer than the near clipping plane or further than the far clipping plane will be clipped out of view.

near, far = lovr.headset.getClipDistance()

Arguments

None

Returns

NameTypeDescription
nearnumber The distance to the near clipping plane, in meters.
farnumber The distance to the far clipping plane, in meters, or 0 for an infinite far clipping plane with a reversed Z range.

Notes

The default near and far clipping planes are 0.01 meters and 0.0 meters.

See also