XRLayer
XRLayer(
props
):null
|Element
Component for rendering high quality quad, cylinder, or equirect layers inside supported sessions. Also includes a fallback for non-supported sessions.
props
XRLayerProperties
Property for displaying images and videos onto the layer. For rendering dynamic content to the layer, leave the src
empty and put the dynamic (3D) content into the children, so that the layer acts as a render target.
Property to configure the shape of the layer ("quad", "cylinder", "equirect").
layoutProperty to configure the layout of the display content for stereo content ("default", "mono", "stereo-left-right", "stereo-top-bottom").
centralAngleProperty to configure the central angle in case the layer shape is a "cylinder".
centralHorizontalAngleProperty to configure the central horizontal angle in case the layer shape is "equirect".
upperVerticalAngleProperty to configure the upper vertical angle in case the layer shape is "equirect".
lowerVerticalAngleProperty to configure the lower vertical angle in case the layer shape is "equirect".
chromaticAberrationCorrectionProperty to configure whether chromatic abberration should be corrected by the layer.
qualityProperty to configure for what type of content the layer should be optimized ("default", "text-optimized", "graphics-optimized").
Returns
null
| Element