lovr.headset.setLayers

Edit

Sets the list of active Layer objects. These are the layers that will be rendered in the headset's display. They are rendered in order.



Arguments

NameTypeDescription
...layersLayer Zero or more layers to render in the headset.

Returns

Nothing

Arguments

NameTypeDescription
ttable A table with zero or more layers starting at index 1.

Returns

Nothing

Notes

Currently some VR systems are able to sort the layers by their Z depth, but on others layers later in the list will render on top of previous layers, regardless of depth.

There is currently a maximum of 10 layers.

See also