lovr.headset.getViewCount

Edit

Returns the number of views used for rendering. Each view consists of a pose in space and a set of angle values that determine the field of view.

This is usually 2 for stereo rendering configurations, but it can also return 1 or 4. For example, one way of doing foveated rendering uses 2 views for each eye -- one low quality view with a wider field of view, and a high quality view with a narrower field of view. On those systems, this function will return 4.

count = lovr.headset.getViewCount()

Arguments

None

Returns

NameTypeDescription
countnumber The number of views.

See also