lovr.headset.getTexture

Edit

Returns a Texture that will be submitted to the headset display. This will be the render target used in the headset's render pass. The texture is not guaranteed to be the same every frame, and must be called every frame to get the current texture.

texture = lovr.headset.getTexture()

Arguments

None

Returns

NameTypeDescription
textureTexture The headset texture.

Notes

This function may return nil if the headset is not being rendered to this frame.

See also