lovr.headset.newLayer

Edit

Creates a new Layer.

layer = lovr.headset.newLayer(width, height)

Arguments

NameTypeDescription
widthnumber The width of the Layer texture, in pixels.
heightnumber The height of the Layer texture, in pixels.

Returns

NameTypeDescription
layerLayer The new Layer.

See also