WebXR
The WebXR host is a browser-wasm host with Godot's WebXR capabilities enabled and the WebXR Layers polyfill included.
See WebXR Configuration for build and publish settings.
Use It
From your Godot project directory, run these commands. Accept add's installation offer if wasm-tools is missing:
bash
dnx 2dog add --webxr
dotnet publish MyGame.webxrServe the site:
bash
dnx dotnet-serve -d MyGame.webxr/AppBundleSet Up Your Scene
Enable web XR shaders in project.godot:
ini
[xr]
shaders/enabled.web=trueAdd an XROrigin3D with an XRCamera3D. Start Godot's WebXRInterface from a button press and enable Viewport.UseXR when the session starts. See the showcase scene for an example.
Use an XR-capable browser and device, or the Immersive Web Emulator. Serve over HTTPS outside localhost. The Web host's limitations also apply.