WebXR
The WebXR host is a browser-wasm host with Godot's WebXR capabilities enabled and the WebXR Layers polyfill included. It is single-threaded: --web-threads applies only to Web and Blazor hosts.
See WebXR Configuration for build and publish settings.
Use It
Run these commands from your Godot project directory. If wasm-tools is missing, accept the offer from add to install it:
dnx 2dog add --webxr
dotnet publish MyGame.webxrServe the site:
dnx dotnet-serve -- -d MyGame.webxr/AppBundleSet Up Your Scene
Enable web XR shaders in project.godot:
[xr]
shaders/enabled.web=trueAdd an XROrigin3D with an XRCamera3D. Start Godot's WebXRInterface when the user presses a button. When the session starts, enable Viewport.UseXR. See the showcase scene for an example.
Use an XR-capable browser and device, or the Immersive Web Emulator. If you do not serve the site from localhost, use HTTPS. The Web host's limitations also apply.