set_render_mode
Sets the rendering mode for XREAL experiences, enabling VR, AR, or MR with adjustable background and occlusion settings.
Instructions
Sets the rendering mode for the XREAL experience. VR mode renders only virtual content, AR mode overlays on passthrough, MR mode enables full mixed reality with occlusion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Rendering mode: VR (virtual only), AR (overlay), MR (full mixed reality) | |
| occlusionMode | No | Occlusion quality mode | EnvironmentDepth |
| backgroundType | No | Background rendering type | Passthrough |
| backgroundColor | No | Background color when using solid color (hex) | #000000 |
| enableOcclusion | No | Enable real-world occlusion of virtual objects (MR mode) | |
| stereoRenderingMode | No | Stereo rendering mode for performance | SinglePassInstanced |