This example demonstrates the use of WebXR Layers to render high quality text and video. For static content such as text, using layers increases the usable resolution of the content by avoiding the extra resampling pass that occurs during normal VR rendering. For dynamic content such as video, using layers also improves performance by only copying data when new frames are available.
See the comments in the code for more information.